Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class TicketFlags

extends KerberosFlags
Class Inheritance
Imports
sun.security.krb5.Asn1Exception, sun.security.krb5.internal.util.KerberosFlags, sun.security.util.*, java.io.IOException

Implements the ASN.1TicketFlags type. TicketFlags ::= BIT STRING { reserved(0), forwardable(1), forwarded(2), proxiable(3), proxy(4), may-postdate(5), postdated(6), invalid(7), renewable(8), initial(9), pre-authent(10), hw-authent(11), enc-pa-rep(15) }

Field Summary

Inherited from sun.security.krb5.internal.util.KerberosFlags:
BITS_PER_UNIT

Constructor Summary

AccessConstructor and Description
public
public
TicketFlags(boolean[] flags)

public
TicketFlags(int size, byte[] data)

public

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public boolean
public boolean
public static TicketFlags

Returns:

an instance of TicketFlags.
parse
(DerInputStream
the Der input stream value, which contains one or more marshaled value.
data
,
byte
tag number.
explicitTag
,
boolean
indicate if this data field is optional
optional
)

Parse (unmarshal) a ticket flag from a DER input stream.

public String
toString()

Overrides sun.security.krb5.internal.util.KerberosFlags.toString.

Returns the string representative of ticket flags.

Inherited from sun.security.krb5.internal.util.KerberosFlags:
asn1EncodegetsettoBooleanArray

Constructor Detail

TicketFlagsback to summary
public TicketFlags()
TicketFlagsback to summary
public TicketFlags(boolean[] flags) throws Asn1Exception
TicketFlagsback to summary
public TicketFlags(int size, byte[] data) throws Asn1Exception
TicketFlagsback to summary
public TicketFlags(DerValue encoding) throws IOException, Asn1Exception

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

matchback to summary
public boolean match(LoginOptions options)
matchback to summary
public boolean match(TicketFlags flags)
parseback to summary
public static TicketFlags parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException

Parse (unmarshal) a ticket flag from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.

Parameters
data:DerInputStream

the Der input stream value, which contains one or more marshaled value.

explicitTag:byte

tag number.

optional:boolean

indicate if this data field is optional

Returns:TicketFlags

an instance of TicketFlags.

Exceptions
Asn1Exception:
on error.
toStringback to summary
public String toString()

Overrides sun.security.krb5.internal.util.KerberosFlags.toString.

Returns the string representative of ticket flags.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object