Skip navigation links

Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10668-05


oracle.security.crypto.core
Class PBMacAlgID

java.lang.Object
  extended by oracle.security.crypto.core.AlgorithmIdentifier
      extended by oracle.security.crypto.core.PBMacAlgID

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, ASN1Object, Streamable

public class PBMacAlgID
extends AlgorithmIdentifier

Algorithm identifier with parameters for PasswordBasedMAC.

Since:
2.2
See Also:
Serialized Form

Constructor Summary
PBMacAlgID()
          Creates a new PBMacAlgID instance.
PBMacAlgID(ASN1Object params)
          Creates a new PBMacAlgID instance with the given parameters.
PBMacAlgID(byte[] salt, AlgorithmIdentifier owf, java.math.BigInteger count, AlgorithmIdentifier mac)
          Creates a new PBMacAlgID instance with the given parameters.
PBMacAlgID(java.io.InputStream is)
          Creates a new PBMacAlgID instance by reading its encoding from the given stream.

 

Method Summary
 java.lang.Object clone()
          Creates a deep copy of this PBMacID object.
 java.math.BigInteger getCount()
          Returns the password-based key derivation iteration count.
 AlgorithmIdentifier getMacAlgID()
          Returns the keyd MAC function to be used for the password-based MAC.
 AlgorithmIdentifier getOwfAlgID()
          Returns the password-based key derivation one-way (hash) function.
 byte[] getSalt()
          Returns the password-based key derivation salt.
 void input(java.io.InputStream is)
          Reads in a PBMacID object from the given input stream.

 

Methods inherited from class oracle.security.crypto.core.AlgorithmIdentifier
equals, getOID, getParameters, hashCode, length, output, readExternal, toString, writeExternal

 

Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

PBMacAlgID

public PBMacAlgID()
Creates a new PBMacAlgID instance.

PBMacAlgID

public PBMacAlgID(byte[] salt,
                  AlgorithmIdentifier owf,
                  java.math.BigInteger count,
                  AlgorithmIdentifier mac)
           throws AlgorithmIdentifierException
Creates a new PBMacAlgID instance with the given parameters.
Parameters:
salt - The password-based encryption key derivation salt.
owf - The password-based key derivation one-way (hash) function.
count - The password-based key derivation iteration count.
mac - The keyed MAC algorithm to be used with the password-based key.
Throws:
AlgorithmIdentifierException - If an error occurs processing the parameters.

PBMacAlgID

public PBMacAlgID(ASN1Object params)
           throws AlgorithmIdentifierException
Creates a new PBMacAlgID instance with the given parameters.
Throws:
AlgorithmIdentifierException - If an error occurs processing the parameters.

PBMacAlgID

public PBMacAlgID(java.io.InputStream is)
           throws java.io.IOException
Creates a new PBMacAlgID instance by reading its encoding from the given stream.
Throws:
java.io.IOException - If an error occurs reading from the stream.

Method Detail

getSalt

public byte[] getSalt()
Returns the password-based key derivation salt.
Returns:
The salt bytes, or null if none are present.

getOwfAlgID

public AlgorithmIdentifier getOwfAlgID()
Returns the password-based key derivation one-way (hash) function.
Returns:
A message digest algorithm identifier, or null if none is present.

getCount

public java.math.BigInteger getCount()
Returns the password-based key derivation iteration count.
Returns:
The iteration count, or null if none is present.

getMacAlgID

public AlgorithmIdentifier getMacAlgID()
Returns the keyd MAC function to be used for the password-based MAC.
Returns:
A MAC algorithm identifier, or null if none is present.

clone

public java.lang.Object clone()
Creates a deep copy of this PBMacID object.
Overrides:
clone in class AlgorithmIdentifier

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Reads in a PBMacID object from the given input stream.
Specified by:
input in interface Streamable
Overrides:
input in class AlgorithmIdentifier
Parameters:
is - The input stream.
Throws:
java.io.IOException - If an I/O error occurs.

Skip navigation links

Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10668-05


Copyright © 2005, 2013, Oracle. All rights reserved.