Package com.sun.xml.wss.impl.dsig
Class KeySelectorImpl
- java.lang.Object
-
- javax.xml.crypto.KeySelector
-
- com.sun.xml.wss.impl.dsig.KeySelectorImpl
-
public class KeySelectorImpl extends KeySelector
Implementation of JSR 105 KeySelector interface. Supports resolving Key information from SecurityTokenReference elements, KeyName, X509Data and KeyValue.- Author:
- K.Venugopal@sun.com,XWS-Security team
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.xml.crypto.KeySelector
KeySelector.Purpose
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeySelectorgetInstance()protected static SecurityTokenresolveToken(String uri, XMLCryptoContext context)BinaryTokens if found would be cached intoFilterProcessingContext.KeySelectorResultselect(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context)-
Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
-
-
-
-
Method Detail
-
getInstance
public static KeySelector getInstance()
- Returns:
-
select
public KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) throws KeySelectorException
- Specified by:
selectin classKeySelector- Parameters:
keyInfo-purpose-method-context-- Returns:
- Throws:
KeySelectorException
-
resolveToken
protected static SecurityToken resolveToken(String uri, XMLCryptoContext context) throws URIReferenceException, com.sun.xml.wss.XWSSecurityException
BinaryTokens if found would be cached intoFilterProcessingContext.- Parameters:
uri-context-- Returns:
- Throws:
URIReferenceExceptioncom.sun.xml.wss.XWSSecurityException
-
-