com.sun.xml.wss.impl.dsig
Class KeySelectorImpl

java.lang.Object
  extended by javax.xml.crypto.KeySelector
      extended by 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
static KeySelector getInstance()
           
protected static SecurityToken resolveToken(String uri, XMLCryptoContext context)
          BinaryTokens if found would be cached into FilterProcessingContext.
 KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context)
           
 
Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
select in class KeySelector
Parameters:
keyInfo -
purpose -
method -
context -
Returns:
Throws:
KeySelectorException

resolveToken

protected static SecurityToken resolveToken(String uri,
                                            XMLCryptoContext context)
                                     throws URIReferenceException,
                                            XWSSecurityException
BinaryTokens if found would be cached into FilterProcessingContext.

Parameters:
uri -
context -
Returns:
Throws:
URIReferenceException
XWSSecurityException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.