gluu
公開メンバ関数 | 静的公開変数類 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse クラス
org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse 連携図
Collaboration graph

公開メンバ関数

 RawAuthenticateResponse (byte userPresence, long counter, byte[] signature)
 
byte getUserPresence ()
 
long getCounter ()
 
byte [] getSignature ()
 
void checkUserPresence () throws BadInputException
 

静的公開変数類

static final byte USER_PRESENT_FLAG = 0x01
 

非公開変数類

final byte userPresence
 
final long counter
 
final byte [] signature
 

詳解

The authenticate response produced by the token/key, which is transformed by the client into an AuthenticateResponse and sent to the server.

著者
Yuriy Movchan Date: 05/14/2015

構築子と解体子

◆ RawAuthenticateResponse()

org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.RawAuthenticateResponse ( byte  userPresence,
long  counter,
byte []  signature 
)
inline
24  {
26  this.counter = counter;
27  this.signature = signature;
28  }
final long counter
Definition: RawAuthenticateResponse.java:21
final byte [] signature
Definition: RawAuthenticateResponse.java:22
final byte userPresence
Definition: RawAuthenticateResponse.java:20

関数詳解

◆ checkUserPresence()

void org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.checkUserPresence ( ) throws BadInputException
inline
56  {
58  throw new BadInputException("User presence invalid during authentication");
59  }
60  }
static final byte USER_PRESENT_FLAG
Definition: RawAuthenticateResponse.java:18
final byte userPresence
Definition: RawAuthenticateResponse.java:20

◆ getCounter()

long org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.getCounter ( )
inline

This is the big-endian representation of a counter value that the U2F device increments every time it performs an authentication operation.

45  {
46  return counter;
47  }
final long counter
Definition: RawAuthenticateResponse.java:21

◆ getSignature()

byte [] org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.getSignature ( )
inline

This is a ECDSA signature (on P-256)

52  {
53  return signature;
54  }
final byte [] signature
Definition: RawAuthenticateResponse.java:22

◆ getUserPresence()

byte org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.getUserPresence ( )
inline

Bit 0 is set to 1, which means that user presence was verified. (This version of the protocol doesn't specify a way to request authentication responses without requiring user presence.) A different value of bit 0, as well as bits 1 through 7, are reserved for future use. The values of bit 1 through 7 SHOULD be 0

37  {
38  return userPresence;
39  }
final byte userPresence
Definition: RawAuthenticateResponse.java:20

メンバ詳解

◆ counter

final long org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.counter
private

◆ signature

final byte [] org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.signature
private

◆ USER_PRESENT_FLAG

final byte org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.USER_PRESENT_FLAG = 0x01
static

◆ userPresence

final byte org.xdi.oxauth.model.fido.u2f.message.RawAuthenticateResponse.userPresence
private

このクラス詳解は次のファイルから抽出されました: