Package com.sun.xml.wss.impl.keyinfo
Class KeyInfoStrategy
java.lang.Object
com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
- Direct Known Subclasses:
BinarySecretStrategy,DirectReferenceStrategy,KeyIdentifierStrategy,KeyNameStrategy,X509IssuerSerialStrategy
The interface for different KeyInfo Schemes
- Author:
- XWS Security team, K.Venugopal@sun.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetAlias()static KeyInfoStrategygetInstance(String strategy) abstract voidinsertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId) insert the Key Information into a ds:KeyInfo using the appropriate schemeabstract voidinsertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg) insert the Key Information into a SecurityTokenReference using the appropriate schemeabstract voidSets the certificate corresponding to the security operation
-
Constructor Details
-
KeyInfoStrategy
public KeyInfoStrategy()
-
-
Method Details
-
getInstance
-
insertKey
public abstract void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId) throws com.sun.xml.wss.XWSSecurityException insert the Key Information into a ds:KeyInfo using the appropriate scheme- Parameters:
keyInfo- the KeyInfo block into which the Key Information has to be inserted.secureMsg- the SecurableSoapMessagex509TokenId- value of the <xwss:X509Token>/@id in config file- Throws:
com.sun.xml.wss.XWSSecurityException- if there was a problem in inserting the key information
-
insertKey
public abstract void insertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg) throws com.sun.xml.wss.XWSSecurityException insert the Key Information into a SecurityTokenReference using the appropriate scheme- Parameters:
tokenRef- the SecurityTokenReference into which the Key Information has to be inserted.secureMsg- the SecurableSoapMessage- Throws:
com.sun.xml.wss.XWSSecurityException- if there was a problem in inserting the key information
-
setCertificate
Sets the certificate corresponding to the security operation -
getAlias
-