APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.jgss

public Class GSSExceptionImpl

extends GSSException
Class Inheritance
Imports
org.ietf.jgss.*, java.io.Serial

This class helps overcome a limitation of the org.ietf.jgss.GSSException class that does not allow the thrower to set a string corresponding to the major code.

Field Summary

Modifier and TypeField and Description
private String
private static final long
Inherited from org.ietf.jgss.GSSException:
BAD_BINDINGSBAD_MECHBAD_MICBAD_NAMEBAD_NAMETYPEBAD_QOPBAD_STATUSCONTEXT_EXPIREDCREDENTIALS_EXPIREDDEFECTIVE_CREDENTIALDEFECTIVE_TOKENDUPLICATE_ELEMENTDUPLICATE_TOKENFAILUREGAP_TOKENNAME_NOT_MNNO_CONTEXTNO_CREDOLD_TOKENUNAUTHORIZEDUNAVAILABLEUNSEQ_TOKEN

Constructor Summary

AccessConstructor and Description
pack-priv
GSSExceptionImpl(int majorCode, Oid mech)

A constructor that takes the majorCode as well as the mech oid that will be appended to the standard message defined in its super class.

public
GSSExceptionImpl(int majorCode, String majorMessage)

A constructor that takes the majorCode as well as the message that corresponds to it.

public
GSSExceptionImpl(int majorCode, Exception cause)

A constructor that takes the majorCode and the exception cause.

public
GSSExceptionImpl(int majorCode, String majorMessage, Exception cause)

A constructor that takes the majorCode, the message that corresponds to it, and the exception cause.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides org.ietf.jgss.GSSException.getMessage.

Returns the message that was embedded in this object, otherwise it returns the default message that an org.ietf.jgss.GSSException generates.

Inherited from org.ietf.jgss.GSSException:
getMajorgetMajorStringgetMinorgetMinorStringsetMinortoString

Field Detail

majorMessageback to summary
private String majorMessage
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.ietf.jgss.GSSException.serialVersionUID.

Annotations
@Serial

Constructor Detail

GSSExceptionImplback to summary
pack-priv GSSExceptionImpl(int majorCode, Oid mech)

A constructor that takes the majorCode as well as the mech oid that will be appended to the standard message defined in its super class.

GSSExceptionImplback to summary
public GSSExceptionImpl(int majorCode, String majorMessage)

A constructor that takes the majorCode as well as the message that corresponds to it.

GSSExceptionImplback to summary
public GSSExceptionImpl(int majorCode, Exception cause)

A constructor that takes the majorCode and the exception cause.

GSSExceptionImplback to summary
public GSSExceptionImpl(int majorCode, String majorMessage, Exception cause)

A constructor that takes the majorCode, the message that corresponds to it, and the exception cause.

Method Detail

getMessageback to summary
public String getMessage()

Overrides org.ietf.jgss.GSSException.getMessage.

Returns the message that was embedded in this object, otherwise it returns the default message that an org.ietf.jgss.GSSException generates.