public static class Signer.Basic extends java.lang.Object implements Signer
Example of use:
Request r = new Request("https://test.server.com"); new RequestSigner.Basic().sign( r, new RequestSigner.Basic.UserPass( "username", "password" ) ); Response p = r.execute();
Modifier and Type | Class and Description |
---|---|
static class |
Signer.Basic.UserPass
An implementation of the Token interface.
|
Signer.Basic
Constructor and Description |
---|
Signer.Basic() |
Modifier and Type | Method and Description |
---|---|
void |
checkToken(Token token)
Checks if the token is appropriate for this signer.
|
java.lang.String |
getSign(Request request,
Token token)
Signs a request
|
public void checkToken(Token token) throws java.lang.IllegalArgumentException
Signer
checkToken
in interface Signer
token
- a token to checkjava.lang.IllegalArgumentException
- is thrown if token is inappropriate (wrong object type, has wrong data, etc.)Copyright © 2013, 2014, Oracle and/or its affiliates. All rights reserved.