|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tivoli.am.fim.trustserver.sts.utilities.OAuthMappingExtUtils
public class OAuthMappingExtUtils
Implementation of STS Mapping Extension Functions for OAuth.
Field Summary | |
---|---|
static java.lang.String |
OAuthMappingExtUtils_java_copyright
|
static java.lang.String |
OAuthMappingExtUtils_java_sourceCodeID
|
Constructor Summary | |
---|---|
OAuthMappingExtUtils()
|
Method Summary | |
---|---|
static boolean |
associate(java.lang.String stateID,
java.lang.String attrKey,
java.lang.String attrValue)
Associates the attribute key-value pair to authorization grant state ID. |
static boolean |
deleteGrant(java.lang.String stateID)
Delete an OAuth grant from the cache. |
static boolean |
deleteToken(java.lang.String tokenID)
Delete an OAuth token from the cache. |
static java.lang.String |
disassociate(java.lang.String stateID,
java.lang.String attrKey)
Disassociates the attribute key-value pair from the authorization grant state ID. |
static java.lang.String |
getAssociation(java.lang.String stateID,
java.lang.String attrKey)
Get an attribute value associated with the given state ID and attibute key. |
static java.lang.String[] |
getAssociationKeys(java.lang.String stateID)
Get all the attribute keys associated with the given authorization grant state ID. |
static Grant[] |
getGrants(java.lang.String username)
Get the grants associated with the given username. |
static com.tivoli.am.fim.trustserver.sts.oauth20.Token[] |
getTokens(java.lang.String clientId,
java.lang.String username)
Get the tokens associated with the given username and client ID |
static HttpResponse |
httpGet(java.lang.String urlstr)
HTTP client GET method. |
static HttpResponse |
httpGet(java.lang.String urlstr,
java.util.Map headers,
java.lang.String httpsTrustStore,
java.lang.String basicAuthUsername,
java.lang.String basicAuthPassword,
java.lang.String clientKeyStore,
java.lang.String clientKeyAlias)
HTTP client GET method. |
static HttpResponse |
httpPost(java.lang.String urlstr,
java.util.Map params)
HTTP client POST method. |
static HttpResponse |
httpPost(java.lang.String urlstr,
java.util.Map headers,
java.util.Map params,
java.lang.String httpsTrustStore,
java.lang.String basicAuthUsername,
java.lang.String basicAuthPassword,
java.lang.String clientKeyStore,
java.lang.String clientKeyAlias)
HTTP client POST method. |
static void |
throwSTSException(java.lang.String message)
Used to throw STS Messages from XLST/Javascript mapping rules. |
static void |
throwSTSUserMessageException(java.lang.String message)
Used to throw STS Messages from XLST/Javascript mapping rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OAuthMappingExtUtils_java_sourceCodeID
public static final java.lang.String OAuthMappingExtUtils_java_copyright
Constructor Detail |
---|
public OAuthMappingExtUtils()
Method Detail |
---|
public static void throwSTSException(java.lang.String message) throws com.tivoli.am.fim.trustserver.sts.STSException
IDMappingExtUtils.throwSTSException(String)
instead
com.tivoli.am.fim.trustserver.sts.STSException
public static void throwSTSUserMessageException(java.lang.String message) throws com.tivoli.am.fim.trustserver.sts.utilities.STSUserMessageException
IDMappingExtUtils.throwSTSException(String)
instead
com.tivoli.am.fim.trustserver.sts.utilities.STSUserMessageException
public static boolean associate(java.lang.String stateID, java.lang.String attrKey, java.lang.String attrValue)
stateID
- State ID of the authorization grantattrKey
- Attribute keyattrValue
- Attribute value
public static java.lang.String disassociate(java.lang.String stateID, java.lang.String attrKey)
stateID
- State ID of the authorization grantattrKey
- Attribute key
public static com.tivoli.am.fim.trustserver.sts.oauth20.Token[] getTokens(java.lang.String clientId, java.lang.String username)
clientId
- The client id of the token. This parameter cannot be null or empty.username
- The user name of the token. This parameter cannot be null or empty.
public static boolean deleteToken(java.lang.String tokenID)
tokenID
- ID of the OAuth token to be deleted. This cannot be null or empty.
public static Grant[] getGrants(java.lang.String username)
username
- The username of the grant. This parameter cannot be null or empty.
public static boolean deleteGrant(java.lang.String stateID)
stateID
- ID of the OAuth grant to be deleted. This cannot be null or empty.
public static java.lang.String[] getAssociationKeys(java.lang.String stateID)
stateID
- State ID of the authorization grant
public static java.lang.String getAssociation(java.lang.String stateID, java.lang.String attrKey)
stateID
- State ID of the authorization grant
public static HttpResponse httpGet(java.lang.String urlstr)
urlstr
- URL
public static HttpResponse httpGet(java.lang.String urlstr, java.util.Map headers, java.lang.String httpsTrustStore, java.lang.String basicAuthUsername, java.lang.String basicAuthPassword, java.lang.String clientKeyStore, java.lang.String clientKeyAlias)
urlstr
- URLheaders
- A Map (String,String) to be added to the request header.httpsTrustStore
- The name of the trust store to use. If a HTTPS connection is
required and this is set to NULL, the default trust store
specified in the override configs will be used.basicAuthUsername
- Basic-auth username. If null, basic-auth will be disabled.basicAuthPassword
- Basic-auth password. If null, basic-auth will be disabled.clientKeyStore
- Client key store. If null, client cert auth will be disabled.clientKeyAlias
- Client key alias. If null, client cert auth will be disabled.
public static HttpResponse httpPost(java.lang.String urlstr, java.util.Map params)
urlstr
- URLparams
- A Map (String,String) to be added to the request body.
public static HttpResponse httpPost(java.lang.String urlstr, java.util.Map headers, java.util.Map params, java.lang.String httpsTrustStore, java.lang.String basicAuthUsername, java.lang.String basicAuthPassword, java.lang.String clientKeyStore, java.lang.String clientKeyAlias)
urlstr
- URLheaders
- A Map (String,String) to be added to the request header.params
- A Map (String,String) to be added to the request body.httpsTrustStore
- The trust store to use. If a HTTPS connection is required and
this is set to NULL, the default trust store specified in the
override configs will be used.basicAuthUsername
- Basic-auth username. If null, basic-auth will be disabled.basicAuthPassword
- Basic-auth password. If null, basic-auth will be disabled.clientKeyStore
- Client key store. If null, client cert auth will be disabled.clientKeyAlias
- Client key alias. If null, client cert auth will be disabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |