Package org.wildfly.security.asn1
Interface ASN1Encodable
- All Known Implementing Classes:
AccessDescription,AuthorityInformationAccessExtension,AuthorityKeyIdentifierExtension,BasicConstraintsExtension,CertificatePoliciesExtension,CertificatePoliciesExtension.PolicyInformation,CertificatePoliciesExtension.PolicyQualifier,CRLDistributionPoint,CRLDistributionPoint.DistributionPointName,CRLDistributionPoint.FullNameDistributionPointName,CRLDistributionPoint.RelativeToCRLIssuerDistributionPointName,CRLDistributionPointsExtension,ExtendedKeyUsageExtension,FreshestCRLExtension,GeneralName,GeneralName.DirectoryName,GeneralName.DNSName,GeneralName.EDIPartyName,GeneralName.IPAddress,GeneralName.OtherName,GeneralName.RegisteredID,GeneralName.RFC822Name,GeneralName.URIName,GeneralName.X400Address,InhibitAnyPolicyExtension,IssuerAlternativeNamesExtension,KeyUsageExtension,NameConstraintsExtension,NameConstraintsExtension.GeneralSubtree,PolicyConstraintsExtension,PolicyMappingsExtension,PolicyMappingsExtension.PolicyMapping,SubjectAlternativeNamesExtension,SubjectDirectoryAttributesExtension,SubjectInformationAccessExtension,SubjectKeyIdentifierExtension,TrustedAuthority,TrustedAuthority.CertificateTrustedAuthority,TrustedAuthority.HashTrustedAuthority,TrustedAuthority.IssuerKeyHashTrustedAuthority,TrustedAuthority.IssuerNameHashTrustedAuthority,TrustedAuthority.NameTrustedAuthority,TrustedAuthority.PKCS15KeyHashTrustedAuthority,X500AttributeTypeAndValue,X500DirectoryAttribute,X509CertificateExtension
public interface ASN1Encodable
An object which can be encoded into an ASN.1 encoder.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTo(ASN1Encoder encoder) Encode this object.static ASN1EncodableofBMPString(String string) Create an instance that will encode the given string as BMP (UTF-16BE).static ASN1EncodableofEncodedBytes(byte[] bytes) Create an instance that will write the given encoded bytes.static ASN1EncodableofIA5String(String string) Create an instance that will encode the given string in IA5 form.static ASN1EncodableofInteger(int value) Create an instance that will encode the given integer.static ASN1EncodableofInteger(BigInteger value) Create an instance that will encode the given integer.static ASN1EncodableCreate an instance that will encode the given object identifier.static ASN1EncodableofPrintableString(String string) Create an instance that will encode the given string in "printable" form.static ASN1EncodableofUniversalString(String string) Create an instance that will encode the given string as universal (UTF-32BE).static ASN1EncodableofUtf8String(String string) Create an instance that will encode the given string as UTF-8.
-
Method Details
-
encodeTo
Encode this object.- Parameters:
encoder- the encoder (must not benull)
-
ofUtf8String
Create an instance that will encode the given string as UTF-8.- Parameters:
string- the string to encode (must not benull)- Returns:
- the instance
-
ofBMPString
Create an instance that will encode the given string as BMP (UTF-16BE).- Parameters:
string- the string to encode (must not benull)- Returns:
- the instance
-
ofUniversalString
Create an instance that will encode the given string as universal (UTF-32BE).- Parameters:
string- the string to encode (must not benull)- Returns:
- the instance
-
ofIA5String
Create an instance that will encode the given string in IA5 form.- Parameters:
string- the string to encode (must not benull)- Returns:
- the instance
-
ofPrintableString
Create an instance that will encode the given string in "printable" form.- Parameters:
string- the string to encode (must not benull)- Returns:
- the instance
-
ofInteger
Create an instance that will encode the given integer.- Parameters:
value- the integer to encode- Returns:
- the instance
-
ofInteger
Create an instance that will encode the given integer.- Parameters:
value- the integer to encode (must not benull)- Returns:
- the instance
-
ofOid
Create an instance that will encode the given object identifier.- Parameters:
oid- the object identifier to encode (must not benull)- Returns:
- the instance
-
ofEncodedBytes
Create an instance that will write the given encoded bytes.- Parameters:
bytes- the bytes to write (must not benull)- Returns:
- the instance
-