public class GSIAuthenticationHandler extends Object implements AuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
protected static eu.emi.security.authn.x509.helpers.ssl.HostnameToCertificateChecker |
CERT_CHECKER |
protected File |
certDir |
protected static int |
CHALLENGE_BYTES |
protected eu.emi.security.authn.x509.X509Credential |
credential
certificates/keys/trust-anchors
|
static String |
CRYPTO_MODE |
protected static org.slf4j.Logger |
LOGGER |
static String |
PROTOCOL |
static String |
PROTOCOL_VERSION |
protected static SecureRandom |
RANDOM
cryptographic helper classes
|
protected static String |
SERVER_ASYNC_CIPHER_MODE
RSA algorithm, no block chaining mode (not a block-cipher) and PKCS1
padding, which is recommended to be used in conjunction with RSA
|
protected static int |
SERVER_SYNC_CIPHER_BLOCKSIZE
blocksize in bytes
|
protected static String |
SERVER_SYNC_CIPHER_MODE
the sync cipher mode supported by the server.
|
protected static String |
SERVER_SYNC_CIPHER_NAME |
static String |
SUPPORTED_CIPHER_ALGORITHMS
for now, we limit ourselves to AES-128 with CBC blockmode.
|
static String |
SUPPORTED_DIGESTS |
protected eu.emi.security.authn.x509.X509CertChainValidator |
validator |
| Constructor and Description |
|---|
GSIAuthenticationHandler(eu.emi.security.authn.x509.X509Credential hostCredential,
eu.emi.security.authn.x509.X509CertChainValidator validator,
String certDir) |
| Modifier and Type | Method and Description |
|---|---|
XrootdResponse<AuthenticationRequest> |
authenticate(AuthenticationRequest request)
dispatcher function that initializes the diffie-hellman key agreement
session, checks the request for the correct protocol and calls the
actual handler functions.
|
protected void |
checkCaIdentities(String[] caIdentities) |
protected void |
checkVersion(String version) |
protected String |
generateChallengeString()
Generate a new challenge string to be used in server-client
communication
|
String |
getProtocol() |
Subject |
getSubject() |
boolean |
isCompleted() |
public static final String PROTOCOL
public static final String PROTOCOL_VERSION
public static final String CRYPTO_MODE
public static final String SUPPORTED_CIPHER_ALGORITHMS
public static final String SUPPORTED_DIGESTS
protected static final String SERVER_ASYNC_CIPHER_MODE
protected static final String SERVER_SYNC_CIPHER_MODE
protected static final String SERVER_SYNC_CIPHER_NAME
protected static final int SERVER_SYNC_CIPHER_BLOCKSIZE
protected static final int CHALLENGE_BYTES
protected static final org.slf4j.Logger LOGGER
protected static final SecureRandom RANDOM
protected static final eu.emi.security.authn.x509.helpers.ssl.HostnameToCertificateChecker CERT_CHECKER
protected final eu.emi.security.authn.x509.X509Credential credential
protected final eu.emi.security.authn.x509.X509CertChainValidator validator
protected final File certDir
public GSIAuthenticationHandler(eu.emi.security.authn.x509.X509Credential hostCredential,
eu.emi.security.authn.x509.X509CertChainValidator validator,
String certDir)
public XrootdResponse<AuthenticationRequest> authenticate(AuthenticationRequest request) throws XrootdException
authenticate in interface AuthenticationHandlerXrootdExceptionhandleCertReqStep(org.dcache.xrootd.protocol.messages.AuthenticationRequest),
handleCertStep(org.dcache.xrootd.protocol.messages.AuthenticationRequest)public String getProtocol()
getProtocol in interface AuthenticationHandlerpublic Subject getSubject()
getSubject in interface AuthenticationHandlerpublic boolean isCompleted()
isCompleted in interface AuthenticationHandlerprotected String generateChallengeString()
protected void checkCaIdentities(String[] caIdentities) throws XrootdException
XrootdExceptionprotected void checkVersion(String version)
Copyright © 2011–2018 dCache.org. All rights reserved.