Interface CertAttrSet
- All Known Implementing Classes:
ACertAttrSet
,AuthInfoAccessExtension
,AuthorityKeyIdentifierExtension
,BasicConstraintsExtension
,CertificateAlgorithmId
,CertificateExtensions
,CertificateIssuerExtension
,CertificateIssuerName
,CertificateIssuerUniqueIdentity
,CertificatePoliciesExtension
,CertificateRenewalWindowExtension
,CertificateScopeOfUseExtension
,CertificateSerialNumber
,CertificateSubjectName
,CertificateSubjectUniqueIdentity
,CertificateValidity
,CertificateVersion
,CertificateX509Key
,CertInfo
,ChallengePassword
,CRLDistributionPointsExtension
,CRLNumberExtension
,CRLReasonExtension
,DeltaCRLIndicatorExtension
,ExtendedKeyUsageExtension
,Extensions
,ExtensionsRequested
,FreshestCRLExtension
,GenericASN1Extension
,HoldInstructionExtension
,InhibitAnyPolicyExtension
,InvalidityDateExtension
,IssuerAlternativeNameExtension
,IssuingDistributionPointExtension
,KeyUsageExtension
,NameConstraintsExtension
,NSCCommentExtension
,NSCertTypeExtension
,OCSPNoCheckExtension
,PolicyConstraintsExtension
,PolicyMappingsExtension
,PresenceServerExtension
,PrivateKeyUsageExtension
,SubjectAlternativeNameExtension
,SubjectDirAttributesExtension
,SubjectInfoAccessExtension
,SubjectKeyIdentifierExtension
,X509CertInfo
public interface CertAttrSet
This interface defines the methods required of a certificate attribute.
Examples of X.509 certificate attributes are Validity, Issuer_Name, and
Subject Name. A CertAttrSet may compromise one attribute or many
attributes.
A CertAttrSet itself can also be comprised of other sub-sets. In the case of X.509 V3 certificates, for example, the "extensions" attribute has subattributes, such as those for KeyUsage and AuthorityKeyIdentifier.
- Version:
- 1.9
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in) Decodes the attribute in the input stream.void
Deletes an attribute value from this CertAttrSet.void
encode
(OutputStream out) Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.Gets an attribute value for this CertAttrSet.Returns an enumeration of the names of the attributes existing within this attribute.getName()
Returns the name (identifier) of this CertAttrSet.void
Sets an attribute value within this CertAttrSet.toString()
Returns a short string describing this certificate attribute.
-
Method Details
-
toString
String toString()Returns a short string describing this certificate attribute. -
encode
Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.- Parameters:
out
- the OutputStream to encode the attribute to.- Throws:
CertificateException
- on encoding or validity errors.IOException
- on other errors.
-
decode
Decodes the attribute in the input stream.- Parameters:
in
- the InputStream to read the encoded attribute from.- Throws:
CertificateException
- on decoding or validity errors.IOException
- on other errors.
-
set
Sets an attribute value within this CertAttrSet.- Parameters:
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
get
Gets an attribute value for this CertAttrSet.- Parameters:
name
- the name of the attribute to return.- Returns:
- attribute value
- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
delete
Deletes an attribute value from this CertAttrSet.- Parameters:
name
- the name of the attribute to delete.- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
getAttributeNames
Enumeration<String> getAttributeNames()Returns an enumeration of the names of the attributes existing within this attribute.- Returns:
- an enumeration of the attribute names.
-
getName
String getName()Returns the name (identifier) of this CertAttrSet.- Returns:
- the name of this CertAttrSet.
-