Class SignatureAlgorithmValidatorTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.signature.support.SignatureAlgorithmValidatorTest
-
public class SignatureAlgorithmValidatorTest extends org.opensaml.core.xml.XMLObjectBaseTestCaseTest signature algorithm whitelist and blacklist evaluation.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>blacklistprivate org.opensaml.xmlsec.signature.Signaturesignatureprivate StringtargetDigestMethodprivate StringtargetSignatureMethodprivate org.opensaml.xmlsec.signature.support.impl.SignatureAlgorithmValidatorvalidatorprivate Set<String>whitelist
-
Constructor Summary
Constructors Constructor Description SignatureAlgorithmValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestBlacklistedBlacklistedMethod()voidtestBlacklistedSignatureMethod()voidtestEmptyLists()voidtestWhitelistedURIs()-
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
-
signature
private org.opensaml.xmlsec.signature.Signature signature
-
targetSignatureMethod
private final String targetSignatureMethod
- See Also:
- Constant Field Values
-
targetDigestMethod
private final String targetDigestMethod
- See Also:
- Constant Field Values
-
validator
private org.opensaml.xmlsec.signature.support.impl.SignatureAlgorithmValidator validator
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp()
-
testEmptyLists
public void testEmptyLists() throws org.opensaml.xmlsec.signature.support.SignatureException- Throws:
org.opensaml.xmlsec.signature.support.SignatureException
-
testWhitelistedURIs
public void testWhitelistedURIs() throws org.opensaml.xmlsec.signature.support.SignatureException- Throws:
org.opensaml.xmlsec.signature.support.SignatureException
-
testBlacklistedSignatureMethod
public void testBlacklistedSignatureMethod() throws org.opensaml.xmlsec.signature.support.SignatureException- Throws:
org.opensaml.xmlsec.signature.support.SignatureException
-
testBlacklistedBlacklistedMethod
public void testBlacklistedBlacklistedMethod() throws org.opensaml.xmlsec.signature.support.SignatureException- Throws:
org.opensaml.xmlsec.signature.support.SignatureException
-
-