Examples of LdapSecurityConstants


Examples of org.apache.directory.api.ldap.model.constants.LdapSecurityConstants

        if ( qualityVal == CheckQualityEnum.NO_CHECK )
        {
            return;
        }

        LdapSecurityConstants secConst = PasswordUtil.findAlgorithm( password );

        // do not perform quality check if the password is not plain text and
        // pwdCheckQuality value is set to 1
        if ( secConst != null )
        {
View Full Code Here

Examples of org.apache.directory.api.ldap.model.constants.LdapSecurityConstants

        {
            public String getText( Object element )
            {
                if ( element instanceof LdapSecurityConstants )
                {
                    LdapSecurityConstants hashingMethod = ( LdapSecurityConstants ) element;

                    switch ( hashingMethod )
                    {
                        case HASH_METHOD_SHA:
                            return "SHA"; //$NON-NLS-1$
View Full Code Here

Examples of org.apache.directory.api.ldap.model.constants.LdapSecurityConstants

            setEnabled( hashingMethodComboViewer.getCombo(), enableServerSidePasswordHashingCheckbox.getSelection() );
            setSelection( hashingMethodComboViewer, LdapSecurityConstants.HASH_METHOD_SSHA );
        }
        else
        {
            LdapSecurityConstants hashingMethod = getHashingMethodFromInterceptor( hashingMethodInterceptor );
            if ( hashingMethod != null )
            {
                // Setting selection for the hashing method
                setSelection( enableServerSidePasswordHashingCheckbox, hashingMethodInterceptor.isEnabled() );
                setEnabled( hashingMethodComboViewer.getCombo(), enableServerSidePasswordHashingCheckbox.getSelection() );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.constants.LdapSecurityConstants

    private void addHashingMethodInterceptor()
    {
        StructuredSelection selection = ( StructuredSelection ) hashingMethodComboViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            LdapSecurityConstants hashingMethod = ( LdapSecurityConstants ) selection.getFirstElement();
            if ( hashingMethod != null )
            {
                // Creating the hashing method interceptor
                InterceptorBean hashingMethodInterceptor = createHashingMethodInterceptor( hashingMethod );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.constants.LdapSecurityConstants

     * @param storedCredentials the credentials stored in the server
     * @return true if they are equal, false otherwise
     */
    public static boolean compareCredentials( byte[] receivedCredentials, byte[] storedCredentials )
    {
        LdapSecurityConstants algorithm = findAlgorithm( storedCredentials );

        if ( algorithm != null )
        {
            EncryptionMethod encryptionMethod = new EncryptionMethod( algorithm, null );

View Full Code Here

Examples of org.apache.directory.shared.ldap.constants.LdapSecurityConstants

            return principal;
        }

        // Let's see if the stored password was encrypted
        LdapSecurityConstants algorithm = findAlgorithm( storedPassword );

        if ( algorithm != null )
        {
            EncryptionMethod encryptionMethod = new EncryptionMethod( algorithm, null );
View Full Code Here

Examples of org.apache.directory.shared.ldap.constants.LdapSecurityConstants

            return principal;
        }

        // Let's see if the stored password was encrypted
        LdapSecurityConstants algorithm = findAlgorithm( storedPassword );

        if ( algorithm != null )
        {
            EncryptionMethod encryptionMethod = new EncryptionMethod( algorithm, null );
View Full Code Here

Examples of org.apache.directory.shared.ldap.constants.LdapSecurityConstants

           
            return principal;
        }
       
        // Let's see if the stored password was encrypted
        LdapSecurityConstants algorithm = findAlgorithm( storedPassword );
       
        if ( algorithm != null )
        {
            EncryptionMethod encryptionMethod = new EncryptionMethod( algorithm, null );
           
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.constants.LdapSecurityConstants

        if ( qualityVal == 0 )
        {
            return;
        }

        LdapSecurityConstants secConst = PasswordUtil.findAlgorithm( password );

        // do not perform quality check if the password is not plain text and
        // pwdCheckQuality value is set to 1
        if ( secConst != null )
        {
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.constants.LdapSecurityConstants

        }

        BinaryValue userPassword = ( BinaryValue ) pwdAt.get();

        // check if the given password is already hashed
        LdapSecurityConstants existingAlgo = PasswordUtil.findAlgorithm( userPassword.getValue() );

        // if there exists NO algorithm, then hash the password
        if ( existingAlgo == null )
        {
            byte[] hashedPassword = PasswordUtil.createStoragePassword( userPassword.getValue(), algorithm );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.