public class SomScramSha1Client
extends java.lang.Object
implements javax.security.sasl.SaslClient
Constructor and Description |
---|
SomScramSha1Client(java.lang.String authzid,
java.lang.String protocol,
java.lang.String server,
javax.security.auth.callback.CallbackHandler cbh)
Create a new instance of a SaslClient which supports SCRAM-SHA-1
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Delete object
|
byte[] |
evaluateChallenge(byte[] arg0)
Evaluate a challenge
|
java.lang.String |
getMechanismName()
Return the name of this client's mechanism
|
java.lang.Object |
getNegotiatedProperty(java.lang.String arg0)
Get a negotiated property
|
boolean |
hasInitialResponse()
Whether this mechanism provides an initial response
|
boolean |
isComplete()
Whether authentication is complete or not
|
byte[] |
unwrap(byte[] arg0,
int arg1,
int arg2)
Unwrap data - not yet implemented
|
byte[] |
wrap(byte[] arg0,
int arg1,
int arg2)
Wrap data - not yet implemented
|
public SomScramSha1Client(java.lang.String authzid, java.lang.String protocol, java.lang.String server, javax.security.auth.callback.CallbackHandler cbh) throws javax.security.sasl.SaslException
authzid
- authorization idprotocol
- not usedserver
- not usedcbh
- callback handlerjavax.security.sasl.SaslException
- on errorpublic void dispose() throws javax.security.sasl.SaslException
dispose
in interface javax.security.sasl.SaslClient
javax.security.sasl.SaslException
- for compatibilitypublic byte[] evaluateChallenge(byte[] arg0) throws javax.security.sasl.SaslException
evaluateChallenge
in interface javax.security.sasl.SaslClient
arg0
- the challenge stringjavax.security.sasl.SaslException
public java.lang.String getMechanismName()
getMechanismName
in interface javax.security.sasl.SaslClient
public java.lang.Object getNegotiatedProperty(java.lang.String arg0)
getNegotiatedProperty
in interface javax.security.sasl.SaslClient
arg0
- the property to getpublic boolean hasInitialResponse()
hasInitialResponse
in interface javax.security.sasl.SaslClient
public boolean isComplete()
isComplete
in interface javax.security.sasl.SaslClient
public byte[] unwrap(byte[] arg0, int arg1, int arg2) throws javax.security.sasl.SaslException
unwrap
in interface javax.security.sasl.SaslClient
arg0
- notusedarg1
- notusedarg2
- notusedjavax.security.sasl.SaslException
- on errorpublic byte[] wrap(byte[] arg0, int arg1, int arg2) throws javax.security.sasl.SaslException
wrap
in interface javax.security.sasl.SaslClient
arg0
- notusedarg1
- notusedarg2
- notusedjavax.security.sasl.SaslException
- on errorVersion: 18.0v6-0
Copyright (c) 2017-2020 Isode