Package org.opensaml.xmlsec.keyinfo.impl
Class DEREncodedKeyValueTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.keyinfo.impl.DEREncodedKeyValueTest
-
public class DEREncodedKeyValueTest extends XMLObjectBaseTestCase
Test resolution of credentials from DEREncodedKeyValue child of KeyInfo.
-
-
Field Summary
Fields Modifier and Type Field Description private StringkeyInfoFileprivate RSAPublicKeypubKeyprivate KeyInfoCredentialResolverresolverprivate StringrsaBase64-
Fields inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description DEREncodedKeyValueTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestCredResolution()Test basic credential resolution.-
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
-
resolver
private KeyInfoCredentialResolver resolver
-
keyInfoFile
private String keyInfoFile
-
pubKey
private RSAPublicKey pubKey
-
rsaBase64
private final String rsaBase64
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
@BeforeMethod protected void setUp() throws Exception
- Throws:
Exception
-
testCredResolution
public void testCredResolution() throws SecurityException, ResolverExceptionTest basic credential resolution.- Throws:
SecurityException- on error resolving credentialsResolverException- on error resolving credentials
-
-