- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
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."); }
@Autowired public void setAppProperties(final AppProperties appProperties) { if (appProperties.getSecurityEnabled() && appProperties.getAdminPublicKey().isPresent()) { this.encryptor = Cryptos.encryptor(appProperties.getAdminPublicKey()); } }