|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TlsTmSecurityCallback<C extends java.security.cert.Certificate>
The TlsTmSecurityCallback
is implemented by the
SnmpTlsMib (of SNMP4J-Agent), for example, to resolve (lookup) the
tmSecurityName
for incoming requests.
Method Summary | |
---|---|
java.lang.String |
getLocalCertificateAlias(Address targetAddress)
Gets the local certificate alias to be used for the supplied target address. |
OctetString |
getSecurityName(C[] peerCertificateChain)
Gets the tmSecurityName (see RFC 5953) from the certificate chain of the communication peer that needs to be authenticated. |
boolean |
isAcceptedIssuer(C issuerCertificate)
Check if the supplied issuer certificate is accepted as server. |
boolean |
isClientCertificateAccepted(C peerEndCertificate)
Check if the supplied peer end certificate is accepted as client. |
boolean |
isServerCertificateAccepted(C[] peerCertificateChain)
Check if the supplied peer certificate chain is accepted as server. |
Method Detail |
---|
OctetString getSecurityName(C[] peerCertificateChain)
peerCertificateChain
- an array of Certificate
s with the peer's own certificate
first followed by any CA authorities.
boolean isClientCertificateAccepted(C peerEndCertificate)
peerEndCertificate
- a client Certificate instance to check acceptance for.
boolean isServerCertificateAccepted(C[] peerCertificateChain)
peerCertificateChain
- a server Certificate chain to check acceptance for.
boolean isAcceptedIssuer(C issuerCertificate)
issuerCertificate
- an issuer Certificate instance to check acceptance for.
java.lang.String getLocalCertificateAlias(Address targetAddress)
targetAddress
- a target address or null if the default local
certificate alias needs to be retrieved.
|
Copyright 2005-2011 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |