uk.org.ogsadai.client.toolkit.security.wsrf
Class GSIIdentityAuthorizationType

java.lang.Object
  extended byuk.org.ogsadai.client.toolkit.security.wsrf.GSIAuthorizationType
      extended byuk.org.ogsadai.client.toolkit.security.wsrf.GSIIdentityAuthorizationType

public class GSIIdentityAuthorizationType
extends GSIAuthorizationType

Represention of GSI identity authorization. Client-side identity authorization specifies that the client will only authorize services whose identity match the specified identity.

Author:
OGSA-DAI team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  java.lang.String mIdentity
           
 
Fields inherited from class uk.org.ogsadai.client.toolkit.security.wsrf.GSIAuthorizationType
HOST, NONE, SELF
 
Constructor Summary
GSIIdentityAuthorizationType(java.lang.String identity)
          Creates a new GSI authorization type which specifies that clients should authorizes services using the specified identity.
 
Method Summary
 boolean equals(java.lang.Object rhs)
          Equality for GSIIdentityAuthorizationType.
 java.lang.String getIdentity()
          Gets the identity that will be authorized.
 int hashCode()
          Obtains the hash code for an instance.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.security.wsrf.GSIAuthorizationType
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mIdentity

private java.lang.String mIdentity
Constructor Detail

GSIIdentityAuthorizationType

public GSIIdentityAuthorizationType(java.lang.String identity)
Creates a new GSI authorization type which specifies that clients should authorizes services using the specified identity.

Parameters:
identity - identity to authorize
Method Detail

getIdentity

public java.lang.String getIdentity()
Gets the identity that will be authorized.

Returns:
identity string

equals

public boolean equals(java.lang.Object rhs)
Equality for GSIIdentityAuthorizationType. Two instances are considered equal if they specify the same identity.

Parameters:
rhs - object to equate with
Returns:
if two the objects are considered equal.

hashCode

public int hashCode()
Obtains the hash code for an instance.

Returns:
hash code value.