com.sun.xml.wss.impl.keyinfo
Class DirectReferenceStrategy

java.lang.Object
  extended by com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
      extended by com.sun.xml.wss.impl.keyinfo.DirectReferenceStrategy

public class DirectReferenceStrategy
extends KeyInfoStrategy


Field Summary
protected static Logger log
           
 
Constructor Summary
DirectReferenceStrategy()
           
DirectReferenceStrategy(String samlAssertionId)
           
DirectReferenceStrategy(String alias, boolean forSigning)
           
 
Method Summary
 String getAlias()
           
 void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId)
          insert the Key Information into a ds:KeyInfo using the appropriate scheme
 void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId, String valueType)
           
 void insertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg)
          insert the Key Information into a SecurityTokenReference using the appropriate scheme
 void setCertificate(X509Certificate cert)
          Sets the certificate corresponding to the security operation
 
Methods inherited from class com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

DirectReferenceStrategy

public DirectReferenceStrategy()

DirectReferenceStrategy

public DirectReferenceStrategy(String samlAssertionId)

DirectReferenceStrategy

public DirectReferenceStrategy(String alias,
                               boolean forSigning)
Method Detail

insertKey

public void insertKey(SecurityTokenReference tokenRef,
                      SecurableSoapMessage secureMsg)
               throws XWSSecurityException
Description copied from class: KeyInfoStrategy
insert the Key Information into a SecurityTokenReference using the appropriate scheme

Specified by:
insertKey in class KeyInfoStrategy
Parameters:
tokenRef - the SecurityTokenReference into which the Key Information has to be inserted.
secureMsg - the SecurableSoapMessage
Throws:
XWSSecurityException - if there was a problem in inserting the key information

insertKey

public void insertKey(KeyInfoHeaderBlock keyInfo,
                      SecurableSoapMessage secureMsg,
                      String x509TokenId)
               throws XWSSecurityException
Description copied from class: KeyInfoStrategy
insert the Key Information into a ds:KeyInfo using the appropriate scheme

Specified by:
insertKey in class KeyInfoStrategy
Parameters:
keyInfo - the KeyInfo block into which the Key Information has to be inserted.
secureMsg - the SecurableSoapMessage
x509TokenId - value of the /@id in config file
Throws:
XWSSecurityException - if there was a problem in inserting the key information

insertKey

public void insertKey(KeyInfoHeaderBlock keyInfo,
                      SecurableSoapMessage secureMsg,
                      String x509TokenId,
                      String valueType)
               throws XWSSecurityException
Throws:
XWSSecurityException

setCertificate

public void setCertificate(X509Certificate cert)
Description copied from class: KeyInfoStrategy
Sets the certificate corresponding to the security operation

Specified by:
setCertificate in class KeyInfoStrategy

getAlias

public String getAlias()
Specified by:
getAlias in class KeyInfoStrategy


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