Package org.opensaml.xmlsec.keyinfo.impl
Class CertChainX509DataTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.keyinfo.impl.CertChainX509DataTest
public class CertChainX509DataTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
Test resolution of credentials from X509Data child of KeyInfo,
where the X509Data contains various identifiers for the entity cert
within a cert chain.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate X509Certificateprivate Stringprivate X509Certificateprivate Stringprivate Stringprivate Stringprivate RSAPublicKeyprivate KeyInfoCredentialResolverprivate final StringFields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidevalCredential(Credential credential) protected voidsetUp()voidTest resolution with multiple certs, end-entity cert identified by X509Digest.voidTest resolution with multiple certs, end-entity cert identified by X509IssuerSerial.voidTest resolution with multiple certs, end-entity cert identified by KeyValue.voidTest resolution with multiple certs, end-entity cert identified by X509SKI.voidTest resolution with multiple certs, end-entity cert identified by X509SubjectName.Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
resolver
-
pubKey
-
rsaBase64
- See Also:
-
entityCert
-
entityCertBase64
-
entityCertSKIBase64
-
entityCertDigestBase64
-
caCert
-
caCertBase64
-
-
Constructor Details
-
CertChainX509DataTest
public CertChainX509DataTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
evalCredential
-
testResolutionWithKeyValue
Test resolution with multiple certs, end-entity cert identified by KeyValue.- Throws:
SecurityException- on error resolving credentialsResolverException- on error resolving credentials
-
testResolutionWithSubjectName
Test resolution with multiple certs, end-entity cert identified by X509SubjectName.- Throws:
SecurityException- on error resolving credentialsResolverException- on error resolving credentials
-
testResolutionWithIssuerSerial
Test resolution with multiple certs, end-entity cert identified by X509IssuerSerial.- Throws:
SecurityException- on error resolving credentialsResolverException- on error resolving credentials
-
testResolutionWithSubjectKeyIdentifier
Test resolution with multiple certs, end-entity cert identified by X509SKI.- Throws:
SecurityException- on error resolving credentialsResolverException- on error resolving credentials
-
testResolutionWithDigest
Test resolution with multiple certs, end-entity cert identified by X509Digest.- Throws:
SecurityException- on error resolving credentialsResolverException- on error resolving credentials
-