Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 538
نمايش فراداده

Principaljava.security

Java 1.1

This interface represents any entity that may serve as a principal in a cryptographic transaction of any kind. A Principal may represent an individual, a computer, or an organization, for example.

public interface

Principal { // Public Instance Methods boolean

equals (Object

another ); String

getName ( ); int

hashCode ( ); String

toString ( ); }

Implementations

Identity, javax.security.auth.kerberos.KerberosPrincipal, javax.security.auth.x500.X500Principal

Passed To

IdentityScope.getIdentity( ), ProtectionDomain.ProtectionDomain( ), javax.net.ssl.X509ExtendedKeyManager.{chooseEngineClientAlias( ), chooseEngineServerAlias( )}, javax.net.ssl.X509KeyManager.{chooseClientAlias( ), chooseServerAlias( ), getClientAliases( ), getServerAliases( )}

Returned By

java.net.SecureCacheResponse.{getLocalPrincipal( ), getPeerPrincipal( )}, java.security.Certificate.{getGuarantor( ), getPrincipal( )}, ProtectionDomain.getPrincipals( ), java.security.cert.X509Certificate.{getIssuerDN( ), getSubjectDN( )}, java.security.cert.X509CRL.getIssuerDN( ), javax.net.ssl.HandshakeCompletedEvent.{getLocalPrincipal( ), getPeerPrincipal( )}, javax.net.ssl.HttpsURLConnection.{getLocalPrincipal( ), getPeerPrincipal( )}, javax.net.ssl.SSLSession.{getLocalPrincipal( ), getPeerPrincipal( )}