Principal
public
interface
Principal
| java.security.Principal |
|
|
This interface represents the abstract notion of a principal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
See also:
Summary
Public methods | |
|---|---|
abstract
boolean
|
equals(Object another)
Compares this principal to the specified object. |
abstract
String
|
getName()
Returns the name of this principal. |
abstract
int
|
hashCode()
Returns a hashcode for this principal. |
abstract
String
|
toString()
Returns a string representation of this principal. |
Public methods
equals
boolean equals (Object another)
Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.
| Parameters | |
|---|---|
another |
Object:
principal to compare with. |
| Returns | |
|---|---|
boolean |
true if the principal passed in is the same as that encapsulated by this principal, and false otherwise. |
getName
String getName ()
Returns the name of this principal.
| Returns | |
|---|---|
String |
the name of this principal. |
hashCode
int hashCode ()
Returns a hashcode for this principal.
| Returns | |
|---|---|
int |
a hashcode for this principal. |
toString
String toString ()
Returns a string representation of this principal.
| Returns | |
|---|---|
String |
a string representation of this principal. |
Interfaces
Classes
- AccessControlContext
- AccessController
- AlgorithmParameterGenerator
- AlgorithmParameterGeneratorSpi
- AlgorithmParameters
- AlgorithmParametersSpi
- AllPermission
- AuthProvider
- BasicPermission
- CodeSigner
- CodeSource
- DigestInputStream
- DigestOutputStream
- GuardedObject
- Identity
- IdentityScope
- KeyFactory
- KeyFactorySpi
- KeyPair
- KeyPairGenerator
- KeyPairGeneratorSpi
- KeyRep
- KeyStore
- KeyStore.Builder
- KeyStore.CallbackHandlerProtection
- KeyStore.PasswordProtection
- KeyStore.PrivateKeyEntry
- KeyStore.SecretKeyEntry
- KeyStore.TrustedCertificateEntry
- KeyStoreSpi
- MessageDigest
- MessageDigestSpi
- Permission
- PermissionCollection
- Permissions
- Policy
- PolicySpi
- ProtectionDomain
- Provider
- Provider.Service
- SecureClassLoader
- SecureRandom
- SecureRandomSpi
- Security
- SecurityPermission
- Signature
- SignatureSpi
- SignedObject
- Signer
- Timestamp
- UnresolvedPermission
Enums
Exceptions
- AccessControlException
- DigestException
- GeneralSecurityException
- InvalidAlgorithmParameterException
- InvalidKeyException
- InvalidParameterException
- KeyException
- KeyManagementException
- KeyStoreException
- NoSuchAlgorithmException
- NoSuchProviderException
- PrivilegedActionException
- ProviderException
- SignatureException
- UnrecoverableEntryException
- UnrecoverableKeyException

