issrg.simplePERMIS
Class SimplePERMISToken

java.lang.Object
  extended by issrg.simplePERMIS.SimplePERMISToken

public class SimplePERMISToken
extends java.lang.Object

This class represents a simple token that is most useful for tests.


Constructor Summary
SimplePERMISToken(java.security.Principal holder, java.security.Principal issuer, java.lang.String type, java.lang.String value)
          Constructor of the SimplePERMISToken.
SimplePERMISToken(java.lang.String holderName, java.lang.String issuer, java.lang.String type, java.lang.String value)
          Constructor of the SimplePERMISToken.
 
Method Summary
 java.lang.String getAttributeType()
          This method retrieves the type of the attribute
 java.lang.String getAttributeValue()
          This method retrieves the value of the attribute
 Entry getHolderEntry()
          This method retrieves the holder entry
 TokenLocator getIssuerTokenLocator()
          This method retrieves the Issuer Entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePERMISToken

public SimplePERMISToken(java.security.Principal holder,
                         java.security.Principal issuer,
                         java.lang.String type,
                         java.lang.String value)
Constructor of the SimplePERMISToken.

Parameters:
holder - The holder of the attribute
issuer - The issuer of the attribute
type - The type of the attribute
value - The value of the attribute

SimplePERMISToken

public SimplePERMISToken(java.lang.String holderName,
                         java.lang.String issuer,
                         java.lang.String type,
                         java.lang.String value)
Constructor of the SimplePERMISToken.

Parameters:
holderName - The holder of the attribute
issuer - The issuer of the attribute
type - The type of the attribute
value - The value of the attribute
Method Detail

getHolderEntry

public Entry getHolderEntry()
This method retrieves the holder entry

Returns:
The scope domain.

getIssuerTokenLocator

public TokenLocator getIssuerTokenLocator()
This method retrieves the Issuer Entry.

Returns:
The Issuer Entry.

getAttributeType

public java.lang.String getAttributeType()
This method retrieves the type of the attribute

Returns:
The type of the attribute

getAttributeValue

public java.lang.String getAttributeValue()
This method retrieves the value of the attribute

Returns:
The value of the attribute.