|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.msl.entityauth.EntityAuthenticationData
com.netflix.msl.entityauth.X509AuthenticationData
public class X509AuthenticationData
X.509 asymmetric keys entity authentication data.
The X.509 certificate should be used to enumerate any entity properties. The certificate subject canonical name is considered the device identity. X.509 authentication data is considered equal based on the device identity.
{
"#mandatory" : [ "x509certificate" ],
"x509certificate" : "base64"
}
where:
x509certificate
is Base64-encoded X.509 certificate
Field Summary | |
---|---|
private String |
identity
Entity identity. |
private static String |
KEY_X509_CERT
JSON key entity X.509 certificate. |
private X509Certificate |
x509cert
Entity X.509 certificate. |
Constructor Summary | |
---|---|
X509AuthenticationData(JSONObject x509AuthJO)
Construct a new X.509 asymmetric keys authentication data instance from the provided JSON object. |
|
X509AuthenticationData(X509Certificate x509cert)
Construct a new X.509 asymmetric keys authentication data instance from the provided X.509 certificate. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
JSONObject |
getAuthData()
|
String |
getIdentity()
|
X509Certificate |
getX509Cert()
|
int |
hashCode()
|
Methods inherited from class com.netflix.msl.entityauth.EntityAuthenticationData |
---|
create, getScheme, toJSONString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String KEY_X509_CERT
private final X509Certificate x509cert
private final String identity
Constructor Detail |
---|
public X509AuthenticationData(X509Certificate x509cert) throws MslCryptoException
x509cert
- entity X.509 certificate.
MslCryptoException
- if the X.509 certificate data cannot be
parsed.X509AuthenticationData(JSONObject x509AuthJO) throws MslCryptoException, MslEncodingException
x509AuthJO
- the authentication data JSON object.
MslCryptoException
- if the X.509 certificate data cannot be
parsed.
MslEncodingException
- if the X.509 certificate cannot be found.Method Detail |
---|
public X509Certificate getX509Cert()
public String getIdentity()
getIdentity
in class EntityAuthenticationData
public JSONObject getAuthData() throws MslEncodingException
getAuthData
in class EntityAuthenticationData
MslEncodingException
- if there was an error constructing the
JSON representation.public boolean equals(Object obj)
equals
in class EntityAuthenticationData
public int hashCode()
hashCode
in class EntityAuthenticationData
|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |