Class SignatureAlgorithmValidatorTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.signature.support.SignatureAlgorithmValidatorTest
-
public class SignatureAlgorithmValidatorTest extends XMLObjectBaseTestCase
Test signature algorithm whitelist and blacklist evaluation.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>blacklistprivate Signaturesignatureprivate StringtargetDigestMethodprivate StringtargetSignatureMethodprivate SignatureAlgorithmValidatorvalidatorprivate Set<String>whitelist-
Fields inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
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
-
Methods inherited from class org.opensaml.core.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
signature
private Signature signature
-
targetSignatureMethod
private final String targetSignatureMethod
- See Also:
- Constant Field Values
-
targetDigestMethod
private final String targetDigestMethod
- See Also:
- Constant Field Values
-
validator
private SignatureAlgorithmValidator validator
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp()
-
testEmptyLists
public void testEmptyLists() throws SignatureException- Throws:
SignatureException
-
testWhitelistedURIs
public void testWhitelistedURIs() throws SignatureException- Throws:
SignatureException
-
testBlacklistedSignatureMethod
public void testBlacklistedSignatureMethod() throws SignatureException- Throws:
SignatureException
-
testBlacklistedBlacklistedMethod
public void testBlacklistedBlacklistedMethod() throws SignatureException- Throws:
SignatureException
-
-