|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.simplePERMIS.SimplePERMISAuthzTokenRepository
public class SimplePERMISAuthzTokenRepository
This class implements the AuthTokenRepository interface. When contructing an instance, the underlying AttributeRepository shall be specified, and the associated AuthTokenParser. The associated AuthTokenParser will be used to parse the tokens stored on the specified repository.
Constructor Summary | |
---|---|
SimplePERMISAuthzTokenRepository(AttributeRepository repository,
AuthzTokenParser parser)
Constructor of the SimpleSAMTokenRepository. |
|
SimplePERMISAuthzTokenRepository(java.lang.String AttributeName,
AttributeRepository repository,
AuthzTokenParser parser)
Constructor of the SimpleSAMAutoRokenRepository. |
Method Summary | |
---|---|
java.lang.String |
getAttributeName()
|
AuthzTokenParser |
getAuthTokenParser()
|
javax.naming.directory.Attribute |
getAuthTokens(TokenLocator subject)
This function retrieves the authorisation token for the specified subject. |
ParsedToken[] |
getParsedAuthTokens(TokenLocator subject)
This function returned the parsed authorisation tokens of the specified subject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePERMISAuthzTokenRepository(java.lang.String AttributeName, AttributeRepository repository, AuthzTokenParser parser)
AttributeName
- The name of the attribute that is considered
as the authorisation token. The AttributeName will be used by the
SimpleSAMAuthTokenRepository object to retrieve the token from
the repository that keeps all related attributes and tokens. repository
- The repository that keeps all tokens parser
- The parser that will be used to parse the tokens stored
on the repository.public SimplePERMISAuthzTokenRepository(AttributeRepository repository, AuthzTokenParser parser)
This constructor will assume that the authorisation token is named as "simpleSAM-Attribute". This may be in conflit with some attributes kept by the source repository that are also named as "simpleSAM-Attribute". Further, the source repository must make sure that the authorisation token is named as "simpleSAM-Attribute" for the SimpleSAMAuthTokenRepository to be able to find it.
repository
- The source repository that keeps the authorisation tokens.parser
- The parser that is used to parse the authorisation token retrieved from the repository.Method Detail |
---|
public java.lang.String getAttributeName()
public AuthzTokenParser getAuthTokenParser()
public javax.naming.directory.Attribute getAuthTokens(TokenLocator subject) throws PbaException
getAuthTokens
in interface AuthzTokenRepository
subject
- The subject specifies whose attributes are needed.
PbaException
- in case of any error while retrieving the tokenspublic ParsedToken[] getParsedAuthTokens(TokenLocator subject) throws PbaException
getParsedAuthTokens
in interface AuthzTokenRepository
subject
- The subject specifies whose attributes are needed.
PbaException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |