Top Description Fields Constructors Methods
org.bouncycastle.est

public Class CSRAttributesResponse

extends Object
implements Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable
Imports
java.io.IOException, java.util.Collection, .HashMap, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.asn1.est.AttrOrOID, .CsrAttrs, org.bouncycastle.util.Encodable

Wrapper class around a CsrAttrs structure.

Field Summary

Modifier and TypeField and Description
private final CsrAttrs
private final HashMap<ASN1ObjectIdentifier, AttrOrOID>

Constructor Summary

AccessConstructor and Description
public
CSRAttributesResponse(byte[]
BER/DER encoding of the certificate.
responseEncoding
)

Create a CSRAttributesResponse from the passed in bytes.

public
CSRAttributesResponse(CsrAttrs
an RFC 7030 CsrAttrs structure.
csrAttrs
)

Create a CSRAttributesResponse from the passed in ASN.1 structure.

Method Summary

Modifier and TypeMethod and Description
public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.
public Collection<ASN1ObjectIdentifier>
public boolean
public boolean
public boolean
private static CsrAttrs
parseBytes(byte[] responseEncoding)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

csrAttrsback to summary
private final CsrAttrs csrAttrs
indexback to summary
private final HashMap<ASN1ObjectIdentifier, AttrOrOID> index

Constructor Detail

CSRAttributesResponseback to summary
public CSRAttributesResponse(byte[] responseEncoding) throws ESTException

Create a CSRAttributesResponse from the passed in bytes.

Parameters
responseEncoding:byte[]

BER/DER encoding of the certificate.

Exceptions
ESTException:
in the event of corrupted data, or an incorrect structure.
CSRAttributesResponseback to summary
public CSRAttributesResponse(CsrAttrs csrAttrs) throws ESTException

Create a CSRAttributesResponse from the passed in ASN.1 structure.

Parameters
csrAttrs:CsrAttrs

an RFC 7030 CsrAttrs structure.

Method Detail

getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

Doc from org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.

Returns:byte[]

a byte array representing the encoding.

Exceptions
IOException:
if an issue arises generation the encoding.
getRequirementsback to summary
public Collection<ASN1ObjectIdentifier> getRequirements()
hasRequirementback to summary
public boolean hasRequirement(ASN1ObjectIdentifier requirementOid)
isAttributeback to summary
public boolean isAttribute(ASN1ObjectIdentifier requirementOid)
isEmptyback to summary
public boolean isEmpty()
parseBytesback to summary
private static CsrAttrs parseBytes(byte[] responseEncoding) throws ESTException