Package org.opensaml.xmlsec.keyinfo.impl
Class LocalKeyInfoCredentialResolverTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.keyinfo.impl.LocalKeyInfoCredentialResolverTest
public class LocalKeyInfoCredentialResolverTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
Test the local credential resolver specialization of the KeyInfo credential resolver.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyInfoprivate LocalKeyInfoCredentialResolverprivate Stringprivate KeyPairprivate BasicCredentialprivate CollectionCredentialResolverFields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
keyName
-
keyPair
-
localCred
-
localCredResolver
-
keyInfoResolver
-
keyInfo
-
-
Constructor Details
-
LocalKeyInfoCredentialResolverTest
public LocalKeyInfoCredentialResolverTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testKeyInfoWithKeyName
- Throws:
ResolverException
-
testKeyInfoWithKnownPublicKey
- Throws:
ResolverExceptionEncodingException
-
testKeyInfoWithUnknownPublicKey
public void testKeyInfoWithUnknownPublicKey() throws IllegalArgumentException, NoSuchAlgorithmException, NoSuchProviderException, ResolverException, EncodingException -
testLocalMode
- Throws:
ResolverExceptionEncodingException
-
testPublicMode
- Throws:
ResolverExceptionEncodingException
-
testBothModeWithLocalNotPresent
- Throws:
ResolverExceptionEncodingException
-
testBothModeWithLocalPresent
- Throws:
ResolverExceptionEncodingException
-