org.apache.ftpserver.usermanager.impl
Class UserMetadata

java.lang.Object
  extended by org.apache.ftpserver.usermanager.impl.UserMetadata

public class UserMetadata
extends java.lang.Object

Internal class, do not use directly. User metadata used during authentication

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
UserMetadata()
           
 
Method Summary
 java.security.cert.Certificate[] getCertificateChain()
          Retrive the certificate chain used for an SSL connection.
 java.net.InetAddress getInetAddress()
          Retrive the remote IP adress of the client
 void setCertificateChain(java.security.cert.Certificate[] certificateChain)
          Set the certificate chain
 void setInetAddress(java.net.InetAddress inetAddress)
          Set the remote IP adress of the client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserMetadata

public UserMetadata()
Method Detail

getCertificateChain

public java.security.cert.Certificate[] getCertificateChain()
Retrive the certificate chain used for an SSL connection.

Returns:
The certificate chain, can be null if no peer certificate is available (e.g. SSL not used)

setCertificateChain

public void setCertificateChain(java.security.cert.Certificate[] certificateChain)
Set the certificate chain

Parameters:
certificateChain - The certificate chain to set

getInetAddress

public java.net.InetAddress getInetAddress()
Retrive the remote IP adress of the client

Returns:
The client IP adress

setInetAddress

public void setInetAddress(java.net.InetAddress inetAddress)
Set the remote IP adress of the client

Parameters:
inetAddress - The client IP adress


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.