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.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 Distinguished Name of the client certificate.
 java.lang.String getRemoteAddr()
          Returns the IP address of the other party.
 java.lang.String getSessionId()
          Returns the SSL session ID used for this connection.
 

Method Detail

getClientCert

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

getClientCertChain

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

getClientName

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

Returns:
String The name of the authenticated client.

getClientX500Name

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

Returns:
String The name of the authenticated client.

getClientX500Principal

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

Returns:
X500Principal The Principal of the authenticated client.

getIssuerName

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

Returns:
The issuer name as a String.

getRemoteAddr

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

Returns:
The remote address as a String.

getSessionId

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

Returns:
The session id as a String.