AESPasswordStorageScheme.java revision a395dd575518d9e5280fc5d5d5ef47c61b174647
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
*/
/**
* This class defines a Directory Server password storage scheme that will
* encode values using the AES reversible encryption algorithm. This
* implementation supports only the user password syntax and not the auth
* password syntax.
*/
public class AESPasswordStorageScheme
{
/**
* The tracer object for the debug logger.
*/
// The reference to the Directory Server crypto manager that we will use to
// handle the encryption/decryption.
private CryptoManager cryptoManager;
/**
* Creates a new instance of this password storage scheme. Note that no
* initialization should be performed here, as all initialization should be
* done in the {@code initializePasswordStorageScheme} method.
*/
public AESPasswordStorageScheme()
{
super();
}
/**
* {@inheritDoc}
*/
@Override()
public void initializePasswordStorageScheme(
{
}
/**
* {@inheritDoc}
*/
@Override()
public String getStorageSchemeName()
{
return STORAGE_SCHEME_NAME_AES;
}
/**
* {@inheritDoc}
*/
@Override()
throws DirectoryException
{
try
{
}
catch (Exception e)
{
if (debugEnabled())
{
}
getExceptionMessage(e));
m, e);
}
}
/**
* {@inheritDoc}
*/
@Override()
throws DirectoryException
{
try
{
}
catch (Exception e)
{
if (debugEnabled())
{
}
getExceptionMessage(e));
m, e);
}
}
/**
* {@inheritDoc}
*/
@Override()
{
try
{
byte[] decryptedPassword =
}
catch (Exception e)
{
if (debugEnabled())
{
}
return false;
}
}
/**
* {@inheritDoc}
*/
@Override()
public boolean isReversible()
{
return true;
}
/**
* {@inheritDoc}
*/
@Override()
throws DirectoryException
{
try
{
byte[] decryptedPassword =
}
catch (Exception e)
{
if (debugEnabled())
{
}
getExceptionMessage(e));
m, e);
}
}
/**
* {@inheritDoc}
*/
@Override()
public boolean supportsAuthPasswordSyntax()
{
// This storage scheme does not support the authentication password syntax.
return false;
}
/**
* {@inheritDoc}
*/
@Override()
throws DirectoryException
{
}
/**
* {@inheritDoc}
*/
@Override()
{
// This storage scheme does not support the authentication password syntax.
return false;
}
/**
* {@inheritDoc}
*/
@Override()
throws DirectoryException
{
}
/**
* {@inheritDoc}
*/
@Override()
public boolean isStorageSchemeSecure()
{
// This password storage scheme should be considered secure.
return true;
}
}