Java 类org.bouncycastle.asn1.esf.CrlIdentifier 实例源码

项目:dss    文件:CRLRef.java   
/**
 * The default constructor for CRLRef.
 *
 * @param cmsRef
 * @throws ParseException
 */
public CRLRef(CrlValidatedID cmsRef) {
    try {

        final CrlIdentifier crlIdentifier = cmsRef.getCrlIdentifier();
        if (crlIdentifier != null) {
            crlIssuer = crlIdentifier.getCrlIssuer();
            crlIssuedTime = crlIdentifier.getCrlIssuedTime().getDate();
            crlNumber = crlIdentifier.getCrlNumber();
        }
        final OtherHash crlHash = cmsRef.getCrlHash();

        digestAlgorithm = DigestAlgorithm.forOID(crlHash.getHashAlgorithm().getAlgorithm().getId());
        digestValue = crlHash.getHashValue();
    } catch (ParseException ex) {
        throw new DSSException(ex);
    }
}