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 javax.xml.crypto.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
javax.xml.crypto.KeySelector.Purpose
 
Method Summary
static javax.xml.crypto.KeySelector getInstance()
           
protected static SecurityToken resolveToken(java.lang.String uri, javax.xml.crypto.XMLCryptoContext context)
          BinaryTokens if found would be cached into FilterProcessingContext.
 javax.xml.crypto.KeySelectorResult select(javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo, javax.xml.crypto.KeySelector.Purpose purpose, javax.xml.crypto.AlgorithmMethod method, javax.xml.crypto.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 javax.xml.crypto.KeySelector getInstance()
Returns:

select

public javax.xml.crypto.KeySelectorResult select(javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo,
                                                 javax.xml.crypto.KeySelector.Purpose purpose,
                                                 javax.xml.crypto.AlgorithmMethod method,
                                                 javax.xml.crypto.XMLCryptoContext context)
                                          throws javax.xml.crypto.KeySelectorException
Specified by:
select in class javax.xml.crypto.KeySelector
Parameters:
keyInfo -
purpose -
method -
context -
Returns:
Throws:
javax.xml.crypto.KeySelectorException

resolveToken

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

Parameters:
uri -
context -
Returns:
Throws:
javax.xml.crypto.URIReferenceException
XWSSecurityException


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