Skip navigation links

Oracle Security Token Service Java API Reference
11.1.1.5

E22477-01


oracle.security.fed.sts.token.tpe
Class TokenResultImpl

java.lang.Object
  extended by oracle.security.fed.sts.token.tpe.TokenResultImpl

All Implemented Interfaces:
TokenResult

public class TokenResultImpl
extends java.lang.Object
implements TokenResult

This class contains the TokenResult from the Validator or Issuer.


Field Summary

 

Fields inherited from interface oracle.security.fed.sts.token.tpe.TokenResult
FAILURE, SUCCESS

 

Constructor Summary
TokenResultImpl(int req, int res, Token tokenObject)
          Creates a TokenResultImpl object

 

Method Summary
 java.lang.String getFailureCode()
          Fetches the failure code if there was a failure during processing
 java.lang.String getFailureString()
          Fetches the Failure string if there was a failure during processing
 int getRequestType()
          Returns the type of token request associated with this result.
 int getResult()
          Fetches the result code.
 Token getToken()
          Fetches the resulting Token
 java.util.Map<java.lang.String,java.lang.Object> getTokenProperties()
          Fetches the properties associated with this token
 java.lang.Object getTokenProperty(java.lang.String name)
          Fetches the properties associated with this token
 void setFailureCode(java.lang.String failureCode)
          Sets the failure code.
 void setFailureString(java.lang.String failureString)
          Sets the failure string
 void setTokenProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
          Sets the token properties
 void setTokenProperty(java.lang.String name, java.lang.Object value)
          Sets a token property

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TokenResultImpl

public TokenResultImpl(int req,
                       int res,
                       Token tokenObject)
Creates a TokenResultImpl object
Parameters:
req, - integer indicating token request type
res, - integer indicating the result
tokenObject, - a token object

Method Detail

getFailureCode

public java.lang.String getFailureCode()
Fetches the failure code if there was a failure during processing
Specified by:
getFailureCode in interface TokenResult
Returns:
the failure code.

setFailureCode

public void setFailureCode(java.lang.String failureCode)
Sets the failure code.
Parameters:
failureCode, - a string value of the failure code

getFailureString

public java.lang.String getFailureString()
Fetches the Failure string if there was a failure during processing
Specified by:
getFailureString in interface TokenResult
Returns:
the failure string

setFailureString

public void setFailureString(java.lang.String failureString)
Sets the failure string
Parameters:
failureString, - the failure string

getTokenProperty

public java.lang.Object getTokenProperty(java.lang.String name)
Fetches the properties associated with this token
Parameters:
name, - the name of the property to return
Returns:
the value of the token property

getTokenProperties

public java.util.Map<java.lang.String,java.lang.Object> getTokenProperties()
Fetches the properties associated with this token
Specified by:
getTokenProperties in interface TokenResult
Returns:
a map of the properties associated with the token being returned in the result.

setTokenProperties

public void setTokenProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the token properties
Parameters:
properties, - a Map object containing the token properties

setTokenProperty

public void setTokenProperty(java.lang.String name,
                             java.lang.Object value)
Sets a token property
Parameters:
name, - the name of the property
value, - the value for the property

getRequestType

public int getRequestType()
Returns the type of token request associated with this result.

getResult

public int getResult()
Fetches the result code.
Specified by:
getResult in interface TokenResult
Returns:
int value indicating success or failure

getToken

public Token getToken()
Fetches the resulting Token
Specified by:
getToken in interface TokenResult
Returns:
the token result created by the operation

Skip navigation links

Oracle Security Token Service Java API Reference
11.1.1.5

E22477-01


Copyright © 2011, Oracle® and/or its affiliates. All rights reserved.