Codota Logo
Cryptos
Code IndexAdd Codota to your IDE (free)

How to use
Cryptos
in
cn.home1.oss.lib.common.crypto

Best Java code snippets using cn.home1.oss.lib.common.crypto.Cryptos (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: cn.home1/oss-lib-common-spring-boot-1.4.2.RELEASE

public RsaKeyGenerator(final String spec) {
 this.provider = Cryptos.provider();
 this.spec = spec;
 this.keyFormat = RsaKey.keyFormat(spec);
 this.keySize = RsaKey.keySize(spec);
 this.keyType = RsaKey.keyType(spec);
 Preconditions.checkArgument(RsaKey.SUPPORTED_PAIR_FORMATS.contains(this.keyFormat), "keyFormat " + this.keyFormat + " not supported.");
 Preconditions.checkArgument(RsaKey.KEY_TYPE_PAIR.equals(this.keyType), "keyType " + this.keyType + " not supported.");
}
origin: cn.home1/oss-lib-adminclient-spring-boot-1.4.1.RELEASE

@Autowired
public void setAppProperties(final AppProperties appProperties) {
 if (appProperties.getSecurityEnabled() && appProperties.getAdminPublicKey().isPresent()) {
  this.encryptor = Cryptos.encryptor(appProperties.getAdminPublicKey());
 }
}
origin: cn.home1/oss-lib-common-spring-boot-1.4.2.RELEASE

final String spec = keyExpression.getSpec();
if (spec.startsWith(ALGO_AES)) {
 result = (T) new Aes(Cryptos.provider(), keyExpression);
} else if (spec.startsWith(ALGO_RSA)) {
 result = (T) new Rsa(Cryptos.provider(), keyExpression);
} else {
 SignatureAlgorithm.forName(spec);
cn.home1.oss.lib.common.cryptoCryptos

Most used methods

  • encryptor
  • provider

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Collectors (java.util.stream)
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now