public class TokenIssuerUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BINARY_SECRET |
static String |
ENCRYPTED_KEY |
| Constructor and Description |
|---|
TokenIssuerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getSharedSecret(RahasData data,
int keyComputation,
int keySize) |
static TokenPersister |
getTokenPersister(AbstractIssuerConfig config,
org.apache.axis2.context.MessageContext inMsgCtx)
Reads the TokenPersister configuration from TokenIssuerConfig and create TokenPersister.
|
static void |
handleRequestedProofToken(RahasData data,
int wstVersion,
AbstractIssuerConfig config,
org.apache.axiom.om.OMElement rstrElem,
Token token,
Document doc) |
static boolean |
isPersisterConfigured(AbstractIssuerConfig samlIssuerConfig)
Util method that checks whether a persister is configured.
|
static void |
manageTokenPersistenceSettings(AbstractIssuerConfig config,
org.apache.axis2.context.MessageContext inMsgCtx)
This initializes token persister and related config and set them in config context if they
are not already set.
|
static void |
setIssuerConfigInConfigCtx(AbstractIssuerConfig samlIssuerConfig,
org.apache.axis2.context.MessageContext msgCxt)
Set the issuer config in config ctx to be referenced in a later stage of the flow.
|
public static final String ENCRYPTED_KEY
public static final String BINARY_SECRET
public static byte[] getSharedSecret(RahasData data, int keyComputation, int keySize) throws TrustException
TrustExceptionpublic static void handleRequestedProofToken(RahasData data, int wstVersion, AbstractIssuerConfig config, org.apache.axiom.om.OMElement rstrElem, Token token, Document doc) throws TrustException
TrustExceptionpublic static boolean isPersisterConfigured(AbstractIssuerConfig samlIssuerConfig)
samlIssuerConfig - public static void setIssuerConfigInConfigCtx(AbstractIssuerConfig samlIssuerConfig, org.apache.axis2.context.MessageContext msgCxt)
samlIssuerConfig - msgCxt - public static TokenPersister getTokenPersister(AbstractIssuerConfig config, org.apache.axis2.context.MessageContext inMsgCtx) throws TrustException
config - TrustExceptionpublic static void manageTokenPersistenceSettings(AbstractIssuerConfig config, org.apache.axis2.context.MessageContext inMsgCtx) throws TrustException
config - inMsgCtx - TrustExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.