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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
encodeTo(ASN1Encoder encoder)
Encode this object.static ASN1Encodable
ofBMPString(String string)
Create an instance that will encode the given string as BMP (UTF-16BE).static ASN1Encodable
ofEncodedBytes(byte[] bytes)
Create an instance that will write the given encoded bytes.static ASN1Encodable
ofIA5String(String string)
Create an instance that will encode the given string in IA5 form.static ASN1Encodable
ofInteger(int value)
Create an instance that will encode the given integer.static ASN1Encodable
ofInteger(BigInteger value)
Create an instance that will encode the given integer.static ASN1Encodable
ofOid(String oid)
Create an instance that will encode the given object identifier.static ASN1Encodable
ofPrintableString(String string)
Create an instance that will encode the given string in "printable" form.static ASN1Encodable
ofUniversalString(String string)
Create an instance that will encode the given string as universal (UTF-32BE).static ASN1Encodable
ofUtf8String(String string)
Create an instance that will encode the given string as UTF-8.
-
-
-
Method Detail
-
encodeTo
void encodeTo(ASN1Encoder encoder)
Encode this object.- Parameters:
encoder
- the encoder (must not benull
)
-
ofUtf8String
static ASN1Encodable ofUtf8String(String string)
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
static ASN1Encodable ofBMPString(String string)
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
static ASN1Encodable ofUniversalString(String string)
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
static ASN1Encodable ofIA5String(String string)
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
static ASN1Encodable ofPrintableString(String string)
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
static ASN1Encodable ofInteger(int value)
Create an instance that will encode the given integer.- Parameters:
value
- the integer to encode- Returns:
- the instance
-
ofInteger
static ASN1Encodable ofInteger(BigInteger value)
Create an instance that will encode the given integer.- Parameters:
value
- the integer to encode (must not benull
)- Returns:
- the instance
-
ofOid
static ASN1Encodable ofOid(String oid)
Create an instance that will encode the given object identifier.- Parameters:
oid
- the object identifier to encode (must not benull
)- Returns:
- the instance
-
ofEncodedBytes
static ASN1Encodable ofEncodedBytes(byte[] bytes)
Create an instance that will write the given encoded bytes.- Parameters:
bytes
- the bytes to write (must not benull
)- Returns:
- the instance
-
-