public abstract class SvceAuthInfo extends AttributeValue
SvceAuthInfo type specified by the
PKIX X.509 Attribute Certificate profile (
RFC 5755) to be used as base type for the ServiceAuthenticationInformation and AccessIdentity attribute
types.
The ASN.1 definition for the SvceAuthInfo type is as follows
(see RFC 5755):
SvceAuthInfo ::= SEQUENCE {
service GeneralName,
ident GeneralName,
authInfo OCTET STRING OPTIONAL
}
Attributes (ServiceAuthenticationInformation
and AccessIdentity) that are based on the SvceAuthInfo
syntax are used to identify the AC holder to a server/service.| Modifier | Constructor and Description |
|---|---|
protected |
SvceAuthInfo()
Empty default constructor.
|
protected |
SvceAuthInfo(ASN1Object obj)
Creates a SvceAuthInfo from its ASN.1 representation.
|
protected |
SvceAuthInfo(GeneralName service,
GeneralName ident)
Creates a SvceAuthInfo from given service and
ident name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an SvceAuthInfo from its ASN.1 representation.
|
GeneralName |
getIdent()
Gets the
ident name of this SvceAuthInfo. |
GeneralName |
getService()
Gets the
service name of this SvceAuthInfo. |
ASN1Object |
toASN1Object()
Returns this SvceAuthInfo as ASN1Object.
|
java.lang.String |
toString()
Returns a String representation of this SvceAuthInfo object.
|
getAttributeType, getName, multipleAllowedprotected SvceAuthInfo()
protected SvceAuthInfo(GeneralName service, GeneralName ident)
service - the name of the service to which the AC holder
shall be identifiedident - the name to be used for identitying the AC holder
to the servicejava.lang.NullPointerException - if null is specified as
service or identprotected SvceAuthInfo(ASN1Object obj) throws CodingException
service, ident
and authInfo (if present) fields from the given ASN.1 object
(see RFC 5755):
SvceAuthInfo ::= SEQUENCE {
service GeneralName,
ident GeneralName,
authInfo OCTET STRING OPTIONAL
}
obj - the SvceAuthInfo as ASN1ObjectCodingException - if the ASN.1 object cannot be parsed or is
invalid structuredpublic GeneralName getService()
service name of this SvceAuthInfo.public GeneralName getIdent()
ident name of this SvceAuthInfo.public void decode(ASN1Object obj) throws CodingException
service, ident
and authInfo (if present) fields from the given ASN.1 object
(see RFC 5755):
SvceAuthInfo ::= SEQUENCE {
service GeneralName,
ident GeneralName,
authInfo OCTET STRING OPTIONAL
}
obj - the SvceAuthInfo as ASN1ObjectCodingException - if the ASN.1 object cannot be parsed or is
invalid structuredpublic ASN1Object toASN1Object() throws CodingException
SvceAuthInfo type is as follows
(see RFC 5755):
SvceAuthInfo ::= SEQUENCE {
service GeneralName,
ident GeneralName,
authInfo OCTET STRING OPTIONAL
}
CodingException - if an error occurs when creating the ASN1Objectpublic java.lang.String toString()
toString in class AttributeValue