APIdia Launch Partner
Top Description Fields Constructors Methods
javax.naming

public abstract Class NamingSecurityException

extends NamingException
Class Inheritance
Known Direct Subclasses
javax.naming.NoPermissionException, javax.naming.AuthenticationException, javax.naming.AuthenticationNotSupportedException

This is the superclass of security-related exceptions thrown by operations in the Context and DirContext interfaces. The nature of the failure is described by the name of the subclass.

If the program wants to handle this exception in particular, it should catch NamingSecurityException explicitly before attempting to catch NamingException. A program might want to do this, for example, if it wants to treat security-related exceptions specially from other sorts of naming exception.

Synchronization and serialization issues that apply to NamingException apply directly here.

Authors
Rosanna Lee, Scott Seligman
Since
1.3

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability
Inherited from javax.naming.NamingException:
remainingNameresolvedNameresolvedObjrootException

Constructor Summary

AccessConstructor and Description
public
NamingSecurityException(String
Possibly null additional detail about this exception.
explanation
)

Constructs a new instance of NamingSecurityException using the explanation supplied.

public
NamingSecurityException()

Constructs a new instance of NamingSecurityException.

Method Summary

Inherited from javax.naming.NamingException:
appendRemainingComponentappendRemainingNamegetCausegetExplanationgetRemainingNamegetResolvedNamegetResolvedObjgetRootCauseinitCausesetRemainingNamesetResolvedNamesetResolvedObjsetRootCausetoStringtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability

Constructor Detail

NamingSecurityExceptionback to summary
public NamingSecurityException(String explanation)

Constructs a new instance of NamingSecurityException using the explanation supplied. All other fields default to null.

Parameters
explanation:String

Possibly null additional detail about this exception.

See Also
java.lang.Throwable#getMessage
NamingSecurityExceptionback to summary
public NamingSecurityException()

Constructs a new instance of NamingSecurityException. All fields are initialized to null.