Examples of StoreCName


Examples of org.apache.directory.shared.kerberos.codec.krbError.actions.StoreCName

        super.transitions[KrbErrorStatesEnum.KRB_ERR_CREALM_STATE.ordinal()][KerberosConstants.KRB_ERROR_CNAME_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_CREALM_STATE,
                KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
                KerberosConstants.KRB_ERROR_CNAME_TAG,
                new StoreCName() );

        // --------------------------------------------------------------------------------------------
        // Transition from cname value to realm tag
        // --------------------------------------------------------------------------------------------
        // realm           [9]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_CNAME_STATE.ordinal()][KerberosConstants.KRB_ERROR_REALM_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
                KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
                KerberosConstants.KRB_ERROR_REALM_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // --------------------------------------------------------------------------------------------
        // Transition from realm tag to realm value
        // --------------------------------------------------------------------------------------------
        // realm           [9] Realm
        super.transitions[KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE.ordinal()][UniversalTag.GENERAL_STRING.getValue()] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
                KrbErrorStatesEnum.KRB_ERR_REALM_STATE,
                UniversalTag.GENERAL_STRING,
                new StoreRealm() );

        // --------------------------------------------------------------------------------------------
        // Transition from realm value to sname
        // --------------------------------------------------------------------------------------------
        // sname           [10] PrincipalName,
        super.transitions[KrbErrorStatesEnum.KRB_ERR_REALM_STATE.ordinal()][KerberosConstants.KRB_ERROR_SNAME_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_REALM_STATE,
                KrbErrorStatesEnum.KRB_ERR_SNAME_STATE,
                KerberosConstants.KRB_ERROR_SNAME_TAG,
                new StoreSName() );

        // --------------------------------------------------------------------------------------------
        // Transition from sname value to etext tag
        // --------------------------------------------------------------------------------------------
        // e-text          [11]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_SNAME_STATE.ordinal()][KerberosConstants.KRB_ERROR_ETEXT_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_SNAME_STATE,
                KrbErrorStatesEnum.KRB_ERR_ETEXT_TAG_STATE,
                KerberosConstants.KRB_ERROR_ETEXT_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // --------------------------------------------------------------------------------------------
        // Transition from etext tag to etext value
        // --------------------------------------------------------------------------------------------
        // e-text          [11] KerberosString OPTIONAL
        super.transitions[KrbErrorStatesEnum.KRB_ERR_ETEXT_TAG_STATE.ordinal()][UniversalTag.GENERAL_STRING.getValue()] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_ETEXT_TAG_STATE,
                KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE,
                UniversalTag.GENERAL_STRING,
                new StoreEText() );

        // --------------------------------------------------------------------------------------------
        // Transition from etext value to edata tag
        // --------------------------------------------------------------------------------------------
        // e-data          [12]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE.ordinal()][KerberosConstants.KRB_ERROR_EDATA_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_ETEXT_STATE,
                KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE,
                KerberosConstants.KRB_ERROR_EDATA_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // --------------------------------------------------------------------------------------------
        // Transition from edata tag to edata value
        // --------------------------------------------------------------------------------------------
        // e-data          [12] OCTET STRING OPTIONAL
        super.transitions[KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_EDATA_TAG_STATE,
                KrbErrorStatesEnum.KRB_ERR_EDATA_STATE,
                UniversalTag.OCTET_STRING,
                new StoreEData() );

        // ----------------------------------------- OPTIONAL transitions -----------------------------------------

        // --------------------------------------------------------------------------------------------
        // Transition from msg-type value to cusec tag
        // --------------------------------------------------------------------------------------------
        // cusec           [3]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERROR_CUSEC_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE,
                KrbErrorStatesEnum.KRB_ERR_CUSEC_TAG_STATE,
                KerberosConstants.KRB_ERROR_CUSEC_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // --------------------------------------------------------------------------------------------
        // Transition from msg-type value to stime tag
        // --------------------------------------------------------------------------------------------
        // stime           [4]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE.ordinal()][KerberosConstants.KRB_ERROR_STIME_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_MSG_TYPE_STATE,
                KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
                KerberosConstants.KRB_ERROR_STIME_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // --------------------------------------------------------------------------------------------
        // Transition from cTime value to stime tag
        // --------------------------------------------------------------------------------------------
        // stime           [4]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_CTIME_STATE.ordinal()][KerberosConstants.KRB_ERROR_STIME_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_CTIME_STATE,
                KrbErrorStatesEnum.KRB_ERR_STIME_TAG_STATE,
                KerberosConstants.KRB_ERROR_STIME_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // from erro-code to realm

        // --------------------------------------------------------------------------------------------
        // Transition from error-code value to realm tag
        // --------------------------------------------------------------------------------------------
        // realm           [9]
        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERROR_REALM_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE,
                KrbErrorStatesEnum.KRB_ERR_REALM_TAG_STATE,
                KerberosConstants.KRB_ERROR_REALM_TAG,
                new CheckNotNullLength<KrbErrorContainer>() );

        // --------------------------------------------------------------------------------------------
        // Transition from error-code value to cname
        // --------------------------------------------------------------------------------------------
        // cname           [8] PrincipalName OPTIONAL,
        super.transitions[KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE.ordinal()][KerberosConstants.KRB_ERROR_CNAME_TAG] =
            new GrammarTransition<KrbErrorContainer>(
                KrbErrorStatesEnum.KRB_ERR_ERROR_CODE_STATE,
                KrbErrorStatesEnum.KRB_ERR_CNAME_STATE,
                KerberosConstants.KRB_ERROR_CNAME_TAG,
                new StoreCName() );

        // --------------------------------------------------------------------------------------------
        // Transition from crealm value to realm tag
        // --------------------------------------------------------------------------------------------
        // realm           [9]
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.