概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
| Tsukuyomi OpenID 0.2.0
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## jp.sourceforge.tsukuyomi.openid.association
クラス AssociationSessionType

    java.lang.Object
      jp.sourceforge.tsukuyomi.openid.association.AssociationSessionType

すべての実装されたインタフェース:
  Comparable<AssociationSessionType>

    public class AssociationSessionType

extends Object
implements Comparable<AssociationSessionType>

Modells the session and association types allowed in OpenID associations.

Association requests and responses must have one of the AssociationSessionType's defined here.

Compatibility mode flag defines backwards-compatibile value sets allowed in OpenID 1.x, but not in OpenID 2

作成者:
  Marius Scurtescu, Johnny Bufu
関連項目:
  `DiffieHellmanSession`

フィールドの概要
`static AssociationSessionType` | `DH_COMPAT_SHA1`
`static AssociationSessionType` | `DH_SHA1`
`static AssociationSessionType` | `DH_SHA256`
`static AssociationSessionType` | `NO_ENCRYPTION_COMPAT_SHA1MAC`
`static AssociationSessionType` | `NO_ENCRYPTION_SHA1MAC`
`static AssociationSessionType` | `NO_ENCRYPTION_SHA256MAC`

メソッドの概要
`int` | `compareTo(AssociationSessionType that)` Compares to another AssociationSessionType; used for sorting.
`static AssociationSessionType` | `create(String sessType)` Creates a OpenID 2 AssociationSessionType with the specified session type and HMAC-SHA1 association type.
`static AssociationSessionType` | `create(String sessType, String assocType)` Creates a OpenID 2 AssociationSessionType with the specified session and association types.
`static AssociationSessionType` | `create(String sessType, String assocType, boolean compatibility)` Creates a AssociationSessionType with the specified session and association types.
`boolean` | `equals(Object obj)`
`String` | `getAssociationType()` Gets the association type.
`String` | `getHAlgorithm()` Gets the H algorithm of the Diffie-Hellman session, or null for no-encryption session types.
`int` | `getKeySize()` Gets the MAC key size, in bits, of this association type.
`String` | `getSessionType()` Gets the session type.
`int` | `hashCode()`
`boolean` | `isBetter(AssociationSessionType other)` Returns true if the specified argument's encryption level is considered better than the one of the current instance.
`boolean` | `isVersion2()` Returns true for OpenID 2 AssociationSessionType's, or false for OpenID 1.x types.
`String` | `toString()`

クラス java.lang.Object から継承されたメソッド
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

フィールドの詳細

### NO_ENCRYPTION_SHA1MAC

    public static final AssociationSessionType NO_ENCRYPTION_SHA1MAC

### NO_ENCRYPTION_COMPAT_SHA1MAC

    public static final AssociationSessionType NO_ENCRYPTION_COMPAT_SHA1MAC

### NO_ENCRYPTION_SHA256MAC

    public static final AssociationSessionType NO_ENCRYPTION_SHA256MAC

### DH_SHA1

    public static final AssociationSessionType DH_SHA1

### DH_COMPAT_SHA1

    public static final AssociationSessionType DH_COMPAT_SHA1

### DH_SHA256

    public static final AssociationSessionType DH_SHA256

メソッドの詳細

### create

    public static AssociationSessionType create(String sessType)
                                         throws AssociationException

  Creates a OpenID 2 AssociationSessionType with the specified session type and HMAC-SHA1 association type.

  パラメータ:
    `sessType` - The session type.
  例外:
    `AssociationException`

### create

    public static AssociationSessionType create(String sessType,
                                                String assocType)
                                         throws AssociationException

  Creates a OpenID 2 AssociationSessionType with the specified session and association types.

  パラメータ:
    `sessType` - The session type.
    `assocType` - The association type.
  例外:
    `AssociationException`

### create

    public static AssociationSessionType create(String sessType,
                                                String assocType,
                                                boolean compatibility)
                                         throws AssociationException

  Creates a AssociationSessionType with the specified session and association types.

  Compatibility flag defines backwards-compatibile value sets allowed in OpenID 1.x, but not in OpenID 2

  パラメータ:
    `sessType` - The session type.
    `assocType` - The association type.
    `compatibility` - True for OpenID 1.x association / session types.
  例外:
    `AssociationException` - For unsupported parameter sets.

### getSessionType

    public String getSessionType()

  Gets the session type.

### getHAlgorithm

    public String getHAlgorithm()

  Gets the H algorithm of the Diffie-Hellman session, or null for no-encryption session types.

### getAssociationType

    public String getAssociationType()

  Gets the association type.

### getKeySize

    public int getKeySize()

  Gets the MAC key size, in bits, of this association type.

### compareTo

    public int compareTo(AssociationSessionType that)

  Compares to another AssociationSessionType; used for sorting.

  定義:
    インタフェース `Comparable<AssociationSessionType>` 内の `compareTo`

### equals

    public boolean equals(Object obj)

  オーバーライド:
    クラス `Object` 内の `equals`

### hashCode

    public int hashCode()

  オーバーライド:
    クラス `Object` 内の `hashCode`

### isBetter

    public boolean isBetter(AssociationSessionType other)

  Returns true if the specified argument's encryption level is considered better than the one of the current instance.

### isVersion2

    public boolean isVersion2()

  Returns true for OpenID 2 AssociationSessionType's, or false for OpenID 1.x types.

### toString

    public String toString()

  オーバーライド:
    クラス `Object` 内の `toString`

概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
| Tsukuyomi OpenID 0.2.0
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

Copyright © 2008 Project Tsukuyomi. All Rights Reserved.