Class HolderOfKeySubjectConfirmationValidatorTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.assertion.tests.BaseAssertionValidationTest
-
- org.opensaml.saml.saml2.assertion.impl.HolderOfKeySubjectConfirmationValidatorTest
-
public class HolderOfKeySubjectConfirmationValidatorTest extends BaseAssertionValidationTest
-
-
Field Summary
Fields Modifier and Type Field Description private X509Certificatecert1private X509Certificatecert2private KeyInfokeyInfoprivate PublicKeypublicKey1private PublicKeypublicKey2private SubjectConfirmationsubjectConfirmationprivate SubjectConfirmationDatasubjectConfirmationDataprivate HolderOfKeySubjectConfirmationValidatorvalidator-
Fields inherited from class org.opensaml.saml.saml2.assertion.tests.BaseAssertionValidationTest
AUTHN_STATEMENT_ADDRESS, CLOCK_SKEW, ISSUER, PRINCIPAL_NAME, SUBJECT_CONFIRMATION_ADDRESS, SUBJECT_CONFIRMATION_IN_RESPONSE_TO, SUBJECT_CONFIRMATION_RECIPIENT
-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description HolderOfKeySubjectConfirmationValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreadCertsAndKeys()protected voidsetUp()voidtestCertAndKeyParamMismatch()voidtestInvalidCert()voidtestInvalidCertParam()voidtestInvalidPublicKey()voidtestInvalidPublicKeyParam()voidtestMissingKeyInfos()voidtestMissingPresenterParams()voidtestNonHOKMethod()voidtestNonKeyInfoConfirmationData()voidtestValidCert()voidtestValidPublicKeyViaDEREncodedKeyValue()voidtestValidPublicKeyViaKeyValue()-
Methods inherited from class org.opensaml.saml.saml2.assertion.tests.BaseAssertionValidationTest
buildBasicAuthnStatement, buildBasicConditions, buildBasicStaticParameters, buildBasicSubjectConfirmationData, buildBasicSubjectConfirmationData, getAssertion, getCertificate, getPrivateKey, getSigningCredential, setUpBasicAssertion, signAssertion
-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
validator
private HolderOfKeySubjectConfirmationValidator validator
-
subjectConfirmation
private SubjectConfirmation subjectConfirmation
-
subjectConfirmationData
private SubjectConfirmationData subjectConfirmationData
-
keyInfo
private KeyInfo keyInfo
-
cert1
private X509Certificate cert1
-
cert2
private X509Certificate cert2
-
publicKey1
private PublicKey publicKey1
-
publicKey2
private PublicKey publicKey2
-
-
Method Detail
-
readCertsAndKeys
@BeforeClass protected void readCertsAndKeys() throws CertificateException, URISyntaxException
-
setUp
@BeforeMethod(dependsOnMethods="setUpBasicAssertion") protected void setUp() throws NoSuchAlgorithmException, NoSuchProviderException
-
testValidPublicKeyViaKeyValue
public void testValidPublicKeyViaKeyValue() throws AssertionValidationException, EncodingException
-
testValidPublicKeyViaDEREncodedKeyValue
public void testValidPublicKeyViaDEREncodedKeyValue() throws AssertionValidationException, NoSuchAlgorithmException, InvalidKeySpecException
-
testInvalidPublicKey
public void testInvalidPublicKey() throws AssertionValidationException, EncodingException
-
testValidCert
public void testValidCert() throws AssertionValidationException, CertificateEncodingException
-
testInvalidCert
public void testInvalidCert() throws AssertionValidationException, CertificateEncodingException
-
testMissingKeyInfos
public void testMissingKeyInfos() throws AssertionValidationException- Throws:
AssertionValidationException
-
testMissingPresenterParams
public void testMissingPresenterParams() throws AssertionValidationException, EncodingException
-
testInvalidPublicKeyParam
public void testInvalidPublicKeyParam() throws AssertionValidationException- Throws:
AssertionValidationException
-
testInvalidCertParam
public void testInvalidCertParam() throws AssertionValidationException- Throws:
AssertionValidationException
-
testCertAndKeyParamMismatch
public void testCertAndKeyParamMismatch() throws AssertionValidationException, EncodingException
-
testNonHOKMethod
public void testNonHOKMethod() throws AssertionValidationException- Throws:
AssertionValidationException
-
testNonKeyInfoConfirmationData
public void testNonKeyInfoConfirmationData() throws AssertionValidationException- Throws:
AssertionValidationException
-
-