public GeneralNames build() { GeneralName[] tmp = new GeneralName[names.size()]; for (int i = 0; i != tmp.length; i++) { tmp[i] = (GeneralName)names.elementAt(i); } return new GeneralNames(tmp); } }
public void setRequester(GeneralNames requester) { // RFC 3029, 9.1: The DVCS MAY modify the fields // 'dvcs', 'requester', 'dataLocations', and 'nonce' of the ReqInfo structure this.requester = requester; }
public void setDVCS(GeneralNames dvcs) { // RFC 3029, 9.1: The DVCS MAY modify the fields // 'dvcs', 'requester', 'dataLocations', and 'nonce' of the ReqInfo structure this.dvcs = dvcs; }
public void setDataLocations(GeneralNames dataLocations) { // RFC 3029, 9.1: The DVCS MAY modify the fields // 'dvcs', 'requester', 'dataLocations', and 'nonce' of the ReqInfo structure this.dataLocations = dataLocations; }
public static GeneralNames getInstance( Object obj) { if (obj instanceof GeneralNames) { return (GeneralNames)obj; } if (obj != null) { return new GeneralNames(ASN1Sequence.getInstance(obj)); } return null; }
public static GeneralNames getInstance( Object obj) { if (obj instanceof GeneralNames) { return (GeneralNames)obj; } if (obj != null) { return new GeneralNames(ASN1Sequence.getInstance(obj)); } return null; }
private GeneralNames generateGeneralNames(X500Name principal) { return new GeneralNames(new GeneralName(principal)); }
public AttributeCertificateIssuer(X500Name principal) { form = new V2Form(new GeneralNames(new GeneralName(principal))); }
private GeneralNames generateGeneralNames(X500Name principal) { return new GeneralNames(new GeneralName(principal)); }
public AttributeCertificateIssuer(X500Name principal) { form = new V2Form(new GeneralNames(new GeneralName(principal))); }
/** * Create an AuthorityKeyIdentifier from the passed in arguments. * * @param certHolder the issuer certificate that the AuthorityKeyIdentifier should refer to. * @return an AuthorityKeyIdentifier. */ public AuthorityKeyIdentifier createAuthorityKeyIdentifier( X509CertificateHolder certHolder) { GeneralName genName = new GeneralName(certHolder.getIssuer()); return new AuthorityKeyIdentifier( getSubjectKeyIdentifier(certHolder), new GeneralNames(genName), certHolder.getSerialNumber()); }
/** * Create an AuthorityKeyIdentifier from the passed in arguments. * * @param certHolder the issuer certificate that the AuthorityKeyIdentifier should refer to. * @return an AuthorityKeyIdentifier. */ public AuthorityKeyIdentifier createAuthorityKeyIdentifier( X509CertificateHolder certHolder) { GeneralName genName = new GeneralName(certHolder.getIssuer()); return new AuthorityKeyIdentifier( getSubjectKeyIdentifier(certHolder), new GeneralNames(genName), certHolder.getSerialNumber()); }
info, new GeneralNames(genName), certificate.getSerialNumber()).toASN1Primitive(); str.getOctets(), new GeneralNames(genName), certificate.getSerialNumber()).toASN1Primitive(); info, new GeneralNames(genName), certificate.getSerialNumber()).toASN1Primitive();
public IssuerSerial( GeneralNames issuer, BigInteger serial) { this(issuer, new ASN1Integer(serial)); }
public AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey pubKey, X500Principal name, BigInteger serial) { return super.createAuthorityKeyIdentifier(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()), new GeneralNames(new GeneralName(X500Name.getInstance(name.getEncoded()))), serial); }
public AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey pubKey, X500Principal name, BigInteger serial) { return super.createAuthorityKeyIdentifier(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()), new GeneralNames(new GeneralName(X500Name.getInstance(name.getEncoded()))), serial); }
private void init(CertificateList x509CRL) { this.x509CRL = x509CRL; this.extensions = x509CRL.getTBSCertList().getExtensions(); this.isIndirect = isIndirectCRL(extensions); this.issuerName = new GeneralNames(new GeneralName(x509CRL.getIssuer())); }
/** * Create a X509CRLHolder from the passed in ASN.1 structure. * * @param x509CRL an ASN.1 CertificateList structure. */ public X509CRLHolder(CertificateList x509CRL) { this.x509CRL = x509CRL; this.extensions = x509CRL.getTBSCertList().getExtensions(); this.isIndirect = isIndirectCRL(extensions); this.issuerName = new GeneralNames(new GeneralName(x509CRL.getIssuer())); }
final GeneralNames gns = new GeneralNames( new GeneralName(X500Name.getInstance(cert.getIssuerX500Principal().getEncoded())) );
final GeneralNames gns = new GeneralNames(gn);