public String getDigestAlgorithm() { return digestAlgorithm.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()); }
/** * 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 getDigestEncryptionAlgorithm() { return digestEncryptionAlgorithm.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 String getSigAlgOID() { String result = sigAlgOID; if (result == null) { // if info was not retrieved (and cached), do it: sigAlgOID = result = tbsCert.getSignature().getAlgorithm(); } return result; }
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()); }
@Override public String toString() { StringBuilder res = new StringBuilder(); res.append("-- CertificationRequestInfo:"); res.append("\n version: "); res.append(version); res.append("\n subject: "); res.append(subject.getName(X500Principal.CANONICAL)); res.append("\n subjectPublicKeyInfo: "); res.append("\n\t algorithm: "); res.append(subjectPublicKeyInfo.getAlgorithmIdentifier().getAlgorithm()); res.append("\n\t public key: ").append(subjectPublicKeyInfo.getPublicKey()); res.append("\n attributes: "); if (attributes != null) { res.append(attributes.toString()); } else { res.append("none"); } res.append("\n-- CertificationRequestInfo End\n"); return res.toString(); }
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()); }
@Override protected void getValues(Object object, Object[] values) { AlgorithmIdentifier aID = (AlgorithmIdentifier) object; values[0] = ObjectIdentifier.toIntArray(aID.getAlgorithm()); values[1] = aID.getParameters(); } };
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()); }
/** * @see java.security.cert.X509CRL#getSigAlgName() * method documentation for more info */ public String getSigAlgName() { if (sigAlgOID == null) { sigAlgOID = tbsCertList.getSignature().getAlgorithm(); sigAlgName = AlgNameMapper.map2AlgName(sigAlgOID); if (sigAlgName == null) { sigAlgName = sigAlgOID; } } return sigAlgName; }
/** * @see java.security.cert.X509CRL#getSigAlgOID() * method documentation for more info */ public String getSigAlgOID() { if (sigAlgOID == null) { sigAlgOID = tbsCertList.getSignature().getAlgorithm(); sigAlgName = AlgNameMapper.map2AlgName(sigAlgOID); if (sigAlgName == null) { sigAlgName = sigAlgOID; } } return sigAlgOID; }
algName = aId.getAlgorithm();
SubjectPublicKeyInfo.ASN1.decode(encoding)) .getAlgorithmIdentifier(); if (!subjectPublicKeyAlgID.equals(ai.getAlgorithm())) { return false;
alg = ai.getAlgorithm(); algName = AlgNameMapper.map2AlgName(alg); setAlgorithm(algName == null ? alg : algName);
alg = ai.getAlgorithm(); algName = AlgNameMapper.map2AlgName(alg); setAlgorithm(algName == null ? alg : algName);
public String getSigAlgOID() { String result = sigAlgOID; if (result == null) { // if info was not retrieved (and cached), do it: sigAlgOID = result = tbsCert.getSignature().getAlgorithm(); } return result; }
public String getSigAlgOID() { String result = sigAlgOID; if (result == null) { // if info was not retrieved (and cached), do it: sigAlgOID = result = tbsCert.getSignature().getAlgorithm(); } return result; }
@Override protected void getValues(Object object, Object[] values) { AlgorithmIdentifier aID = (AlgorithmIdentifier) object; values[0] = ObjectIdentifier.toIntArray(aID.getAlgorithm()); values[1] = aID.getParameters(); } };