org.apache.lenya.cms.ac.usecases
Class CredentialWrapper

java.lang.Object
  extended by org.apache.lenya.cms.ac.usecases.CredentialWrapper

public class CredentialWrapper
extends java.lang.Object

Wrapper class for credentials.

Version:
$Id: CredentialWrapper.java 544630 2007-06-05 20:55:45Z rfrovarp $

Field Summary
protected static java.lang.String GROUP
           
protected static java.lang.String IPRANGE
           
protected static java.lang.String USER
           
 
Constructor Summary
CredentialWrapper(org.apache.lenya.ac.Accreditable accreditable, org.apache.lenya.ac.Role role, java.lang.String method)
          Ctor.
 
Method Summary
 java.lang.String getAccreditableId()
          Returns the accreditable ID.
 java.lang.String getAccreditableName()
          Returns the accreditable name.
 java.lang.String getMethod()
          Returns the method of the Credential
 java.lang.String getRoleId()
          Returns the role ID.
 java.lang.String getRoleName()
          Returns the role name.
 java.lang.String getType()
          Returns the accreditable type (USER, GROUP, or IPRANGE)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

protected static final java.lang.String USER
See Also:
Constant Field Values

GROUP

protected static final java.lang.String GROUP
See Also:
Constant Field Values

IPRANGE

protected static final java.lang.String IPRANGE
See Also:
Constant Field Values
Constructor Detail

CredentialWrapper

public CredentialWrapper(org.apache.lenya.ac.Accreditable accreditable,
                         org.apache.lenya.ac.Role role,
                         java.lang.String method)
Ctor.

Parameters:
accreditable - The accreditable of the credential to wrap.
role - The role of the credential to wrap.
method -
Method Detail

getMethod

public java.lang.String getMethod()
Returns the method of the Credential

Returns:
A string that is either "deny" or "grant"

getAccreditableId

public java.lang.String getAccreditableId()
Returns the accreditable ID.

Returns:
A string.

getAccreditableName

public java.lang.String getAccreditableName()
Returns the accreditable name.

Returns:
A string.

getRoleId

public java.lang.String getRoleId()
Returns the role ID.

Returns:
A string.

getRoleName

public java.lang.String getRoleName()
Returns the role name.

Returns:
A string.

getType

public java.lang.String getType()
Returns the accreditable type (USER, GROUP, or IPRANGE)

Returns:
A string.


Copyright $ Apache Software Foundation. All Rights Reserved.