Skip to Content
Java in a Nutshell, 5th Edition
book

Java in a Nutshell, 5th Edition

by David Flanagan
March 2005
Intermediate to advanced
1254 pages
104h 21m
English
O'Reilly Media, Inc.
Content preview from Java in a Nutshell, 5th Edition

Name

KerberosKey

Synopsis

This class is a javax.crypto.SecretKey implementation that represents the secret key of a Kerberos principal. A Kerberos-based javax.security.auth.spi.LoginModule implementation instantiates a KerberosKey object and stores it in the private credential set of the authenticated Subject it creates.

javax.security.auth.kerberos.KerberosKey

Figure 19-15. javax.security.auth.kerberos.KerberosKey

public class KerberosKey implements javax.security.auth.Destroyable, 
        javax.crypto.SecretKey {
// Public Constructors
     public KerberosKey(KerberosPrincipal principal, char[ ] password, 
        String algorithm);  
     public KerberosKey(KerberosPrincipal principal, byte[ ] keyBytes, int keyType, 
        int versionNum);  
// Public Instance Methods
     public final int getKeyType( );  
     public final KerberosPrincipal getPrincipal( );  
     public final int getVersionNumber( );  
// Methods Implementing Destroyable
     public void destroy( ) throws javax.security.auth.DestroyFailedException;  
     public boolean isDestroyed( );  
// Methods Implementing Key
     public final String getAlgorithm( );  
     public final byte[ ] getEncoded( );  
     public final String getFormat( );  
// Public Methods Overriding Object
     public String toString( );  
}
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 0596007736Supplemental ContentErrata Page