org.blinkenlights.jid3.crypt
Class ID3Encryption

java.lang.Object
  extended byorg.blinkenlights.jid3.crypt.ID3Encryption

public class ID3Encryption
extends java.lang.Object


Method Summary
 ICryptoAgent deregisterCryptoAgent(java.lang.String sOwnerIdentifier)
          Deregister a crypto agent.
static ID3Encryption getInstance()
          Get the single instance of the ID3Encryption registrar.
 ICryptoAgent lookupCryptoAgent(java.lang.String sOwnerIdentifier)
          Look up a registered crypto agent.
 void registerCryptoAgent(ICryptoAgent oCryptoAgent)
          Register a crypto agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ID3Encryption getInstance()
Get the single instance of the ID3Encryption registrar.

Returns:
the ID3Encryption instance

registerCryptoAgent

public void registerCryptoAgent(ICryptoAgent oCryptoAgent)
Register a crypto agent. This is the means by which support for encryption algorithms are added. An encryption method must be registered before it can be used to encrypt or decrypt an encrypted ID3V2 frame.

Parameters:
oCryptoAgent - the crypto agent to be registered

deregisterCryptoAgent

public ICryptoAgent deregisterCryptoAgent(java.lang.String sOwnerIdentifier)
Deregister a crypto agent.

Parameters:
sOwnerIdentifier - the owner identifier string uniquely identifying the crypto agent to be deregistered
Returns:
the previously registered agent if there is a match, or null otherwise

lookupCryptoAgent

public ICryptoAgent lookupCryptoAgent(java.lang.String sOwnerIdentifier)
Look up a registered crypto agent.

Parameters:
sOwnerIdentifier - the owner identifier string uniquely identifying the crypto agent to be returned
Returns:
the registered agent if there is a match, or null otherwise