Most visited

Recently visited

Added in API level 1

PSource.PSpecified

public static final class PSource.PSpecified
extends PSource

java.lang.Object
    javax.crypto.spec.PSource
      javax.crypto.spec.PSource.PSpecified


该类用于明确指定在OAEP填充中编码输入P的值。

摘要(Summary)

Fields

public static final PSource.PSpecified DEFAULT

编码输入P的值等于字节[0]。

Public constructors

PSource.PSpecified(byte[] p)

以指定值 p作为编码输入P显式构造源。

公共方法(Public methods)

byte[] getValue()

返回编码输入P的值。

继承方法(Inherited methods)

From class javax.crypto.spec.PSource
From class java.lang.Object

Fields

DEFAULT

Added in API level 1
PSource.PSpecified DEFAULT

编码输入P的值等于字节[0]。

Public constructors

PSource.PSpecified

Added in API level 1
PSource.PSpecified (byte[] p)

以指定值 p作为编码输入P显式构造源。注意:

参数(Parameters)
p byte: the value of the encoding input. The contents of the array are copied to protect against subsequent modification.
抛出异常(Throws)
NullPointerException if p is null.

公共方法(Public methods)

getValue

Added in API level 1
byte[] getValue ()

返回编码输入P的值。

返回(Returns)
byte[] the value of encoding input P. A new array is returned each time this method is called.

Hooray!