APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class PaPacOptions

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

Implements the ASN.1 PA-PAC-OPTIONS type.
PA-PAC-OPTIONS ::= SEQUENCE {
KerberosFlags
  -- Claims (0)
  -- Branch Aware (1)
  -- Forward to Full DC (2)
}
Note: KerberosFlags   ::= BIT STRING (SIZE (32..MAX))
        -- minimum number of bits shall be sent, but no fewer than 32

PA-PAC-OPTIONS ::= KerberosFlags
  -- resource-based constrained delegation (3)
This definition reflects MS-KILE (section 2.2.10) and MS-SFU (section 2.2.5).

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private KerberosFlags
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public
public
PaPacOptions(DerValue
the ASN.1 encoded input
encoding
)

Constructs a PA-PAC-OPTIONS object from a DER encoding.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

an ASN.1 encoded PaPacOptions byte array
asn1Encode
()

Encodes this PaPacOptions instance.

public boolean

Returns:

the branch-aware flag value
getBranchAware
()

Getter for the branch-aware flag

public boolean

Returns:

the claims flag value
getClaims
()

Getter for the claims flag

public boolean

Returns:

the forward-to-full-DC flag value
getForwardToFullDC
()

Getter for the forward-to-full-DC flag

public boolean

Returns:

the resource-based-constrained-delegation flag value
getResourceBasedConstrainedDelegation
()

Getter for the resource-based-constrained-delegation flag

public PaPacOptions

Returns:

the same PaPacOptions instance
setBranchAware
(boolean
whether the branch-aware flag is set or not
value
)

Setter for the branch-aware flag

public PaPacOptions

Returns:

the same PaPacOptions instance
setClaims
(boolean
whether the claims flag is set or not
value
)

Setter for the claims flag

public PaPacOptions

Returns:

the same PaPacOptions instance
setForwardToFullDC
(boolean
whether the forward-to-full-DC flag is set or not
value
)

Setter for the forward-to-full-DC flag

public PaPacOptions

Returns:

the same PaPacOptions instance
setResourceBasedConstrainedDelegation
(boolean
whether the resource-based-constrained-delegation is set or not
value
)

Setter for the resource-based-constrained-delegation flag

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

BRANCH_AWAREback to summary
private static final int BRANCH_AWARE
CLAIMSback to summary
private static final int CLAIMS
flagsback to summary
private KerberosFlags flags
FORWARD_TO_FULL_DCback to summary
private static final int FORWARD_TO_FULL_DC
RESOURCE_BASED_CONSTRAINED_DELEGATIONback to summary
private static final int RESOURCE_BASED_CONSTRAINED_DELEGATION

Constructor Detail

PaPacOptionsback to summary
public PaPacOptions()
PaPacOptionsback to summary
public PaPacOptions(DerValue encoding) throws Asn1Exception, IOException

Constructs a PA-PAC-OPTIONS object from a DER encoding.

Parameters
encoding:DerValue

the ASN.1 encoded input

Exceptions
Asn1Exception:
if invalid DER
IOException:
if there is an error reading the DER value

Method Detail

asn1Encodeback to summary
public byte[] asn1Encode() throws IOException

Encodes this PaPacOptions instance.

Returns:byte[]

an ASN.1 encoded PaPacOptions byte array

Exceptions
IOException:
if an I/O error occurs while encoding this PaPacOptions instance
getBranchAwareback to summary
public boolean getBranchAware()

Getter for the branch-aware flag

Returns:boolean

the branch-aware flag value

getClaimsback to summary
public boolean getClaims()

Getter for the claims flag

Returns:boolean

the claims flag value

getForwardToFullDCback to summary
public boolean getForwardToFullDC()

Getter for the forward-to-full-DC flag

Returns:boolean

the forward-to-full-DC flag value

getResourceBasedConstrainedDelegationback to summary
public boolean getResourceBasedConstrainedDelegation()

Getter for the resource-based-constrained-delegation flag

Returns:boolean

the resource-based-constrained-delegation flag value

setBranchAwareback to summary
public PaPacOptions setBranchAware(boolean value)

Setter for the branch-aware flag

Parameters
value:boolean

whether the branch-aware flag is set or not

Returns:PaPacOptions

the same PaPacOptions instance

setClaimsback to summary
public PaPacOptions setClaims(boolean value)

Setter for the claims flag

Parameters
value:boolean

whether the claims flag is set or not

Returns:PaPacOptions

the same PaPacOptions instance

setForwardToFullDCback to summary
public PaPacOptions setForwardToFullDC(boolean value)

Setter for the forward-to-full-DC flag

Parameters
value:boolean

whether the forward-to-full-DC flag is set or not

Returns:PaPacOptions

the same PaPacOptions instance

setResourceBasedConstrainedDelegationback to summary
public PaPacOptions setResourceBasedConstrainedDelegation(boolean value)

Setter for the resource-based-constrained-delegation flag

Parameters
value:boolean

whether the resource-based-constrained-delegation is set or not

Returns:PaPacOptions

the same PaPacOptions instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override