org.glite.security
Interface SecurityInfo

All Known Implementing Classes:
SecurityContext

public interface SecurityInfo

An interface from which an external application can get information from underlying authentication and authorization processes.

Author:
mulmo
See Also:
SecurityInfoContainer

Method Summary
 java.lang.String getAuthorizationPolicy()
           
 java.util.List getAuthorizedAttributes()
           
 java.security.cert.X509Certificate getClientCert()
           
 java.security.cert.X509Certificate[] getClientCertChain()
           
 java.lang.String getClientName()
          Returns the name of the authenticated client.
 java.lang.String getClientX500Name()
          Returns the name of the authenticated client in X500 format.
 X500Principal getClientX500Principal()
          Returns the Principal of the authenticated client in X500 format.
 java.lang.String getIssuerName()
          Returns the Issuer Distuingished Name of the client certificate.
 java.lang.String getRemoteAddr()
          Returns the IP address of the other party.
 java.util.List getRequestedAttributes()
           
 java.lang.String getSessionId()
          Returns the SSL session ID used for this connection.
 

Method Detail

getAuthorizationPolicy

public java.lang.String getAuthorizationPolicy()
Returns:
String The name of the policy used in the authorization process

getAuthorizedAttributes

public java.util.List getAuthorizedAttributes()
Returns:
List of String (the approved authorization attributes)
See Also:
getRequestedAttributes()

getRequestedAttributes

public java.util.List getRequestedAttributes()
Returns:
List of String (the requested authorization attributes)
See Also:
getAuthorizedAttributes()

getClientCert

public java.security.cert.X509Certificate getClientCert()
Returns:
X509Certificate The identity certificate of the authenticated client

getClientCertChain

public java.security.cert.X509Certificate[] getClientCertChain()
Returns:
X509Certificate[] The client's certificate chain

getClientName

public java.lang.String getClientName()
Returns the name of the authenticated client. Typically, this is the Subject Distuingished Name of the client certificate.

Returns:
String The name of the authenticated client.

getClientX500Name

public java.lang.String getClientX500Name()
Returns the name of the authenticated client in X500 format. Typically, this is the Subject Distuingished Name of the client certificate.

Returns:
String The name of the authenticated client.

getClientX500Principal

public X500Principal getClientX500Principal()
Returns the Principal of the authenticated client in X500 format. Typically, this is the Subject Distuingished Name of the client certificate.

Returns:
X500Principal The Principal of the authenticated client.

getIssuerName

public java.lang.String getIssuerName()
Returns the Issuer Distuingished Name of the client certificate.


getRemoteAddr

public java.lang.String getRemoteAddr()
Returns the IP address of the other party.


getSessionId

public java.lang.String getSessionId()
Returns the SSL session ID used for this connection.