|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.rampart.util.RampartUtil
Constructor Summary | |
RampartUtil()
|
Method Summary | |
static String |
addWsuIdToElement(org.apache.axiom.om.OMElement elem)
|
static Element |
appendChildToSecHeader(RampartMessageData rmd,
Element elem)
|
static Element |
appendChildToSecHeader(RampartMessageData rmd,
org.apache.axiom.om.OMElement elem)
|
static org.apache.axiom.om.OMElement |
createRSTTempalteForSCT(int conversationVersion,
int wstVersion)
|
static String |
getContextIdentifierKey(org.apache.axis2.context.MessageContext msgContext)
Creates the unique (reproducible) id for to hold the context identifier of the message exchange. |
static Hashtable |
getContextMap(org.apache.axis2.context.MessageContext msgContext)
Returns the map of security context token identifiers |
static Vector |
getEncryptedParts(RampartMessageData rmd)
|
static org.apache.ws.security.components.crypto.Crypto |
getEncryptionCrypto(RampartConfig config,
ClassLoader loader)
Create the Crypto instance for encryption using information
from the rampart configuration assertion |
static KeyGenerator |
getEncryptionKeyGenerator(String symEncrAlgo)
|
static String |
getIssuedToken(RampartMessageData rmd,
IssuedToken issuedToken)
Obtain an issued token. |
static int |
getKeyIdentifier(X509Token token)
figureout the key identifier of a give X509Token |
static CallbackHandler |
getPasswordCB(org.apache.axis2.context.MessageContext msgContext,
RampartPolicyData rpd)
|
static CallbackHandler |
getPasswordCB(RampartMessageData rmd)
|
static String |
getRequestEncryptedKeyId(Vector results)
|
static byte[] |
getRequestEncryptedKeyValue(Vector results)
|
static String |
getSecConvToken(RampartMessageData rmd,
SecureConversationToken secConvTok)
Obtain a security context token. |
static org.apache.ws.security.components.crypto.Crypto |
getSignatureCrypto(RampartConfig config,
ClassLoader loader)
Create the Crypto instance for signature using information
from the rampart configuration assertion |
static Vector |
getSignedParts(RampartMessageData rmd)
|
static String |
getSoapBodyId(org.apache.axiom.soap.SOAPEnvelope env)
|
static int |
getTimeToLive(RampartMessageData messageData)
|
static String |
getToken(RampartMessageData rmd,
org.apache.axiom.om.OMElement rstTemplate,
String issuerEpr,
String action,
org.apache.neethi.Policy issuerPolicy)
Request a token. |
static Element |
insertSiblingAfter(RampartMessageData rmd,
Element child,
Element sibling)
|
static Element |
insertSiblingBefore(RampartMessageData rmd,
Element child,
Element sibling)
|
static boolean |
isTokenValid(RampartMessageData rmd,
String id)
|
static org.apache.ws.security.WSPasswordCallback |
performCallback(CallbackHandler cbHandler,
String username,
int doAction)
Perform a callback to get a password. |
static String |
processIssuerAddress(org.apache.axiom.om.OMElement issuerAddress)
Process a give issuer address element and return the address. |
static void |
setEncryptionUser(RampartMessageData rmd,
org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RampartUtil()
Method Detail |
public static CallbackHandler getPasswordCB(RampartMessageData rmd) throws RampartException
RampartException
public static CallbackHandler getPasswordCB(org.apache.axis2.context.MessageContext msgContext, RampartPolicyData rpd) throws RampartException
msgContext
- rpd
-
CallbackHandler
instance
RampartException
public static org.apache.ws.security.WSPasswordCallback performCallback(CallbackHandler cbHandler, String username, int doAction) throws RampartException
RampartException
public static org.apache.ws.security.components.crypto.Crypto getEncryptionCrypto(RampartConfig config, ClassLoader loader) throws RampartException
Crypto
instance for encryption using information
from the rampart configuration assertion
config
-
Crypto
instance to be used for encryption
RampartException
public static org.apache.ws.security.components.crypto.Crypto getSignatureCrypto(RampartConfig config, ClassLoader loader) throws RampartException
Crypto
instance for signature using information
from the rampart configuration assertion
config
-
Crypto
instance to be used for signature
RampartException
public static int getKeyIdentifier(X509Token token) throws RampartException
token
-
RampartException
public static String processIssuerAddress(org.apache.axiom.om.OMElement issuerAddress) throws RampartException
issuerAddress
-
RampartException
- If the issuer address element is malformed.public static org.apache.axiom.om.OMElement createRSTTempalteForSCT(int conversationVersion, int wstVersion) throws RampartException
RampartException
public static int getTimeToLive(RampartMessageData messageData)
public static String getSecConvToken(RampartMessageData rmd, SecureConversationToken secConvTok) throws TrustException, RampartException
rmd
- secConvTok
-
TrustException
RampartException
public static String getIssuedToken(RampartMessageData rmd, IssuedToken issuedToken) throws RampartException
rmd
- issuedToken
-
RampartException
public static String getToken(RampartMessageData rmd, org.apache.axiom.om.OMElement rstTemplate, String issuerEpr, String action, org.apache.neethi.Policy issuerPolicy) throws RampartException
rmd
- rstTemplate
- issuerEpr
- action
- issuerPolicy
-
RampartException
public static String getSoapBodyId(org.apache.axiom.soap.SOAPEnvelope env)
public static String addWsuIdToElement(org.apache.axiom.om.OMElement elem)
public static Element appendChildToSecHeader(RampartMessageData rmd, org.apache.axiom.om.OMElement elem)
public static Element appendChildToSecHeader(RampartMessageData rmd, Element elem)
public static Element insertSiblingAfter(RampartMessageData rmd, Element child, Element sibling)
public static Element insertSiblingBefore(RampartMessageData rmd, Element child, Element sibling)
public static Vector getEncryptedParts(RampartMessageData rmd)
public static Vector getSignedParts(RampartMessageData rmd)
public static KeyGenerator getEncryptionKeyGenerator(String symEncrAlgo) throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
public static String getContextIdentifierKey(org.apache.axis2.context.MessageContext msgContext)
public static Hashtable getContextMap(org.apache.axis2.context.MessageContext msgContext)
public static boolean isTokenValid(RampartMessageData rmd, String id) throws RampartException
RampartException
public static void setEncryptionUser(RampartMessageData rmd, org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder) throws RampartException
RampartException
public static String getRequestEncryptedKeyId(Vector results)
public static byte[] getRequestEncryptedKeyValue(Vector results)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |