public class GssUpContext extends Object implements Serializable
| Constructor and Description |
|---|
GssUpContext()
Create a new GssUpContext
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(org.omg.GSSUP.InitialContextToken contextToken)
Perform initial authentication
|
boolean |
authorize(String target,
String operation)
Authorize the given operation on the given target for the current user
|
byte[] |
createClientContext(Codec codec,
org.omg.GSSUP.InitialContextToken token,
String targetName)
Create a client GSSUP context
|
org.omg.GSSUP.InitialContextToken |
decode(Codec codec,
byte[] gssToken)
Decode a binary token to an InitialContextToken
|
String |
getContextTokenTargetName()
Get the target_name that will be placed in the InitialContextToken
|
byte[] |
getMechOIDDer()
Get the DER representation of mechanism OID
|
boolean |
isPropagateContext()
Query whether the SAS Context of the client is propagated with calles
from this applications
|
public byte[] createClientContext(Codec codec, org.omg.GSSUP.InitialContextToken token, String targetName)
codec - The codec to usetoken - The initial context token if null, a new InitialContextToken
will be created using GssUpProvider configured in the ORB.targetName - The name of the target objectpublic boolean authenticate(org.omg.GSSUP.InitialContextToken contextToken)
contextToken - The context token to authenticatetrue If authentication succeededpublic boolean authorize(String target, String operation)
target - The target interface idoperation - The operation nametrue If authorization succeededpublic String getContextTokenTargetName()
public boolean isPropagateContext()
true if the SAS Context of the client is propagated
with calles from this applications@CoberturaIgnore public byte[] getMechOIDDer()
public org.omg.GSSUP.InitialContextToken decode(Codec codec, byte[] gssToken)
codec - The codec for decodinggssToken - The binary tokenCopyright © 2018 ADDC Infotech GmbH. All rights reserved.