public interface ConnectionAttributes
extends java.security.Principal
From within the initialization method of a LoginModule, one can retrieve this with the following code:
SetciSet = subject.getPrincipals(ConnectionAttributes.class); ConnectionAttributes connectionAttributes = ciSet.iterator().next();
LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
,
Subject
Modifier and Type | Interface and Description |
---|---|
static class |
ConnectionAttributes.Type
This enumeration describes the type of connection of the
ConnectionAttributes object.
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
getInetAddress()
Gets the network address of the client socket.
|
ConnectionAttributes.Type |
getType()
Retrieves the type of the client connection.
|
byte[] |
getX509Data()
If TLS is enabled, retrieve the x509 certificate of the remote end
of the TLS connection, if one is available.
|
boolean |
isSSL()
Determine if the connection is using TLS to authenticate.
|
java.net.InetAddress getInetAddress()
InetAddress
boolean isSSL()
Note: This does not necessarily mean the connection data is encrypted; Refer to the EMS User Guide documentation regarding "TLS Authentication Only" for more information.
byte[] getX509Data()
ConnectionAttributes.Type getType()
Copyright © Cloud Software Group, Inc. All rights reserved