public String getDigestAlgorithmName() { return digestAlgorithm.getAlgorithmName(); }
public String getDigestEncryptionAlgorithmName() { return digestEncryptionAlgorithm.getAlgorithmName(); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }
/** * Returns the PublicKey corresponding to this SubjectPublicKeyInfo * instance. */ public PublicKey getPublicKey() { if (publicKey == null) { final byte[] encoded = getEncoded(); final KeySpec keySpec = new X509EncodedKeySpec(encoded); /* Try using the algorithm name first. */ final String algName = algorithmID.getAlgorithmName(); publicKey = generateKeyForAlgorithm(keySpec, algName); /* * Fall back to using the algorithm OID if it's not the same as the * algorithm name. */ final String algOid = algorithmID.getAlgorithm(); if (publicKey == null && !algOid.equals(algName)) { publicKey = generateKeyForAlgorithm(keySpec, algOid); } /* * Encode this as an X.509 public key since we didn't have any * KeyFactory that could handle this algorithm name or OID. Perhaps * the thing that's using this can decode it. */ if (publicKey == null) { publicKey = new X509PublicKey(algOid, encoded, subjectPublicKey); } } return publicKey; }
public String getDigestEncryptionAlgorithmName() { return digestEncryptionAlgorithm.getAlgorithmName(); }
public String getDigestEncryptionAlgorithmName() { return digestEncryptionAlgorithm.getAlgorithmName(); }
public String getDigestEncryptionAlgorithmName() { return digestEncryptionAlgorithm.getAlgorithmName(); }
public String getDigestAlgorithmName() { return digestAlgorithm.getAlgorithmName(); }
public String getDigestEncryptionAlgorithmName() { return digestEncryptionAlgorithm.getAlgorithmName(); }
public String getDigestAlgorithmName() { return digestAlgorithm.getAlgorithmName(); }
public String getDigestAlgorithmName() { return digestAlgorithm.getAlgorithmName(); }
public String getDigestAlgorithmName() { return digestAlgorithm.getAlgorithmName(); }
public String getDigestEncryptionAlgorithmName() { return digestEncryptionAlgorithm.getAlgorithmName(); }
public String getDigestAlgorithmName() { return digestAlgorithm.getAlgorithmName(); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }
public void dumpValue(StringBuilder sb) { sb.append(getAlgorithmName()); if (parameters == null) { sb.append(", no params, "); } else { sb.append(", params unparsed, "); } sb.append("OID = "); sb.append(getAlgorithm()); }