Codota Logo
java.security.interfaces
Code IndexAdd Codota to your IDE (free)

How to use java.security.interfaces

Best Java code snippets using java.security.interfaces (Showing top 20 results out of 1,881)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

RawRSAPrivateCrtKey(final RSAPrivateCrtKey original) {
  super(original);
  publicExponent = original.getPublicExponent();
  primeP = original.getPrimeP();
  primeQ = original.getPrimeQ();
  primeExponentP = original.getPrimeExponentP();
  primeExponentQ = original.getPrimeExponentQ();
  crtCoefficient = original.getCrtCoefficient();
}
origin: wildfly/wildfly

RawRSAPrivateKey(final RSAPrivateKey original) {
  super(original);
  privateExponent = original.getPrivateExponent();
  modulus = original.getModulus();
}
origin: wildfly/wildfly

RawDSAPrivateKey(final DSAPrivateKey original) {
  super(original);
  x = original.getX();
  params = original.getParams();
}
origin: hierynomus/sshj

@Override
protected void writePubKeyContentsIntoBuffer(PublicKey pk, Buffer<?> buf) {
  final DSAPublicKey dsaKey = (DSAPublicKey) pk;
  buf.putMPInt(dsaKey.getParams().getP()) // p
    .putMPInt(dsaKey.getParams().getQ()) // q
    .putMPInt(dsaKey.getParams().getG()) // g
    .putMPInt(dsaKey.getY()); // y
}
origin: hierynomus/sshj

@Override
protected void writePubKeyContentsIntoBuffer(PublicKey pk, Buffer<?> buf) {
  final RSAPublicKey rsaKey = (RSAPublicKey) pk;
  buf.putMPInt(rsaKey.getPublicExponent()) // e
    .putMPInt(rsaKey.getModulus()); // n
}
origin: wildfly/wildfly

/**
 * Get the key size for the given {@code Key}.
 *
 * @param key the key
 * @return the key size or -1 if the key size cannot be determined
 */
public static int getKeySize(final Key key) {
  if (key instanceof ECKey) {
    ECParameterSpec params = ((ECKey) key).getParams();
    if (params != null) {
      return params.getOrder().bitLength();
    }
  } else if (key instanceof DSAKey) {
    DSAParams params = ((DSAKey) key).getParams();
    if (params != null) {
      return params.getP().bitLength();
    }
  } else if (key instanceof RSAKey) {
    return ((RSAKey) key).getModulus().bitLength();
  }
  return -1;
}
origin: wildfly/wildfly

RawECPrivateKey(final ECPrivateKey original) {
  super(original);
  s = original.getS();
  params = original.getParams();
}
origin: skylot/jadx

String generateDSAPublicKey() {
  DSAPublicKey pub = (DSAPublicKey) cert.getPublicKey();
  StringBuilder builder = new StringBuilder();
  append(builder, NLS.str("certificate.serialPubKeyType"), pub.getAlgorithm());
  append(builder, NLS.str("certificate.serialPubKeyY"), pub.getY().toString(10));
  return builder.toString();
}
origin: relayrides/pushy

@Override
public ECPoint getW() {
  return this.getKey().getW();
}
origin: mpusher/mpush

@Override
public String toString() {
  return "RsaCipher [privateKey=" + new String(privateKey.getEncoded()) + ", publicKey=" + new String(publicKey.getEncoded()) + "]";
}
origin: relayrides/pushy

@Override
public BigInteger getS() {
  return this.getKey().getS();
}
origin: jenkinsci/jenkins

  public CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm) throws IOException, GeneralSecurityException {
    this(in,toCipher(key,Cipher.DECRYPT_MODE),algorithm,key.getModulus().bitLength());
  }
}
origin: wildfly/wildfly

RawRSAMultiPrimePrivateCrtKey(final RSAMultiPrimePrivateCrtKey original) {
  super(original);
  publicExponent = original.getPublicExponent();
  primeP = original.getPrimeP();
  primeQ = original.getPrimeQ();
  primeExponentP = original.getPrimeExponentP();
  primeExponentQ = original.getPrimeExponentQ();
  crtCoefficient = original.getCrtCoefficient();
  final RSAOtherPrimeInfo[] otherPrimeInfo = original.getOtherPrimeInfo();
  this.otherPrimeInfo = otherPrimeInfo == null ? null : otherPrimeInfo.clone();
}
origin: jenkinsci/jenkins

  /**
   * Gets base64-encoded public key.
   */
  public String getEncodedPublicKey() {
    return new String(Base64.encodeBase64(getPublicKey().getEncoded()));
  }
}
origin: relayrides/pushy

@Override
public ECParameterSpec getParams() {
  return this.key.getParams();
}
origin: relayrides/pushy

@Override
public String getAlgorithm() {
  return this.getKey().getAlgorithm();
}
origin: relayrides/pushy

@Override
public String getAlgorithm() {
  return this.getKey().getAlgorithm();
}
origin: relayrides/pushy

@Override
public byte[] getEncoded() {
  return this.getKey().getEncoded();
}
origin: relayrides/pushy

@Override
public String getFormat() {
  return this.getKey().getFormat();
}
origin: wildfly/wildfly

/**
 * Construct a new instance.
 *
 * @param rsaKey the RSA key from which the modulus should be acquired (must not be {@code null})
 */
public RSAParameterSpec(final RSAKey rsaKey) {
  this(Assert.checkNotNullParam("rsaKey", rsaKey).getModulus());
}
java.security.interfaces

Most used classes

  • RSAPublicKey
  • RSAPrivateKey
  • DSAParams
  • ECPublicKey
  • DSAPublicKey
  • ECPrivateKey,
  • DSAPrivateKey,
  • RSAKey,
  • DSAKey,
  • ECKey,
  • RSAMultiPrimePrivateCrtKey
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