Package org.opensaml.xmlsec.keyinfo.impl
Class CertChainX509DataTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.keyinfo.impl.CertChainX509DataTest
-
public class CertChainX509DataTest extends org.opensaml.core.xml.XMLObjectBaseTestCaseTest resolution of credentials from X509Data child of KeyInfo, where the X509Data contains various identifiers for the entity cert within a cert chain.
-
-
Field Summary
Fields Modifier and Type Field Description private X509CertificatecaCertprivate StringcaCertBase64private X509CertificateentityCertprivate StringentityCertBase64private StringentityCertDigestBase64private StringentityCertSKIBase64private RSAPublicKeypubKeyprivate org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolverresolverprivate StringrsaBase64
-
Constructor Summary
Constructors Constructor Description CertChainX509DataTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidevalCredential(org.opensaml.security.credential.Credential credential)protected voidsetUp()voidtestResolutionWithDigest()Test resolution with multiple certs, end-entity cert identified by X509Digest.voidtestResolutionWithIssuerSerial()Test resolution with multiple certs, end-entity cert identified by X509IssuerSerial.voidtestResolutionWithKeyValue()Test resolution with multiple certs, end-entity cert identified by KeyValue.voidtestResolutionWithSubjectKeyIdentifier()Test resolution with multiple certs, end-entity cert identified by X509SKI.voidtestResolutionWithSubjectName()Test resolution with multiple certs, end-entity cert identified by X509SubjectName.-
Methods inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
-
-
-
Field Detail
-
resolver
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver resolver
-
pubKey
private RSAPublicKey pubKey
-
rsaBase64
private final String rsaBase64
- See Also:
- Constant Field Values
-
entityCert
private X509Certificate entityCert
-
entityCertBase64
private String entityCertBase64
-
entityCertSKIBase64
private String entityCertSKIBase64
-
entityCertDigestBase64
private String entityCertDigestBase64
-
caCert
private X509Certificate caCert
-
caCertBase64
private String caCertBase64
-
-
Method Detail
-
setUp
@BeforeMethod protected void setUp() throws Exception
- Throws:
Exception
-
evalCredential
protected void evalCredential(org.opensaml.security.credential.Credential credential)
-
testResolutionWithKeyValue
public void testResolutionWithKeyValue() throws org.opensaml.security.SecurityException, net.shibboleth.utilities.java.support.resolver.ResolverExceptionTest resolution with multiple certs, end-entity cert identified by KeyValue.- Throws:
org.opensaml.security.SecurityException- on error resolving credentialsnet.shibboleth.utilities.java.support.resolver.ResolverException- on error resolving credentials
-
testResolutionWithSubjectName
public void testResolutionWithSubjectName() throws org.opensaml.security.SecurityException, net.shibboleth.utilities.java.support.resolver.ResolverExceptionTest resolution with multiple certs, end-entity cert identified by X509SubjectName.- Throws:
org.opensaml.security.SecurityException- on error resolving credentialsnet.shibboleth.utilities.java.support.resolver.ResolverException- on error resolving credentials
-
testResolutionWithIssuerSerial
public void testResolutionWithIssuerSerial() throws org.opensaml.security.SecurityException, net.shibboleth.utilities.java.support.resolver.ResolverExceptionTest resolution with multiple certs, end-entity cert identified by X509IssuerSerial.- Throws:
org.opensaml.security.SecurityException- on error resolving credentialsnet.shibboleth.utilities.java.support.resolver.ResolverException- on error resolving credentials
-
testResolutionWithSubjectKeyIdentifier
public void testResolutionWithSubjectKeyIdentifier() throws org.opensaml.security.SecurityException, net.shibboleth.utilities.java.support.resolver.ResolverExceptionTest resolution with multiple certs, end-entity cert identified by X509SKI.- Throws:
org.opensaml.security.SecurityException- on error resolving credentialsnet.shibboleth.utilities.java.support.resolver.ResolverException- on error resolving credentials
-
testResolutionWithDigest
public void testResolutionWithDigest() throws org.opensaml.security.SecurityException, net.shibboleth.utilities.java.support.resolver.ResolverExceptionTest resolution with multiple certs, end-entity cert identified by X509Digest.- Throws:
org.opensaml.security.SecurityException- on error resolving credentialsnet.shibboleth.utilities.java.support.resolver.ResolverException- on error resolving credentials
-
-