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!