public void action( IAsn1Container container ) throws DecoderException { CertGenerationContainer CertGenContainer = ( CertGenerationContainer ) container; Value value = CertGenContainer.getCurrentTLV().getValue(); String keyAlgorithm = StringTools.utf8ToString( value.getData() ); if ( IS_DEBUG ) { LOG.debug( "key algorithm = " + keyAlgorithm ); } if ( keyAlgorithm != null && ( keyAlgorithm.trim().length() > 0 ) ) { CertGenContainer.getCertGenerationObject().setKeyAlgorithm( keyAlgorithm ); } CertGenContainer.grammarEndAllowed( true ); } } );
public void action( Asn1Container container ) throws DecoderException { CertGenerationContainer certGenContainer = ( CertGenerationContainer ) container; Value value = certGenContainer.getCurrentTLV().getValue(); String keyAlgorithm = Strings.utf8ToString(value.getData()); if ( IS_DEBUG ) { LOG.debug( "key algorithm = " + keyAlgorithm ); } if ( keyAlgorithm != null && ( keyAlgorithm.trim().length() > 0 ) ) { certGenContainer.getCertGenerationObject().setKeyAlgorithm( keyAlgorithm ); } certGenContainer.setGrammarEndAllowed( true ); } } );
public void action( SyncStateValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = {}", cookie ); } container.getSyncStateValueControl().setCookie( cookie ); // terminal state container.setGrammarEndAllowed( true ); } } );
public void action( IAsn1Container container ) throws DecoderException { SyncStateValueControlContainer syncStateValueContainer = ( SyncStateValueControlContainer ) container; Value value = syncStateValueContainer.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = {}", cookie ); } syncStateValueContainer.getSyncStateValueControl().setCookie( cookie ); // terminal state syncStateValueContainer.grammarEndAllowed( true ); } } );
public void action( SyncDoneValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = {}", Strings.dumpBytes(cookie) ); } container.getSyncDoneValueControl().setCookie( cookie ); container.setGrammarEndAllowed( true ); } } );
public void action( SyncModifyDnContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); String newRdn = Strings.utf8ToString(value.getData()); if ( IS_DEBUG ) { LOG.debug( "newRdn = {}", newRdn ); } container.getSyncModifyDnControl().setNewRdn( newRdn ); // terminal state container.setGrammarEndAllowed( false ); } } );
public void action( SyncModifyDnContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); String newRdn = Strings.utf8ToString(value.getData()); if ( IS_DEBUG ) { LOG.debug( "newRdn = {}", newRdn ); } container.getSyncModifyDnControl().setNewRdn( newRdn ); // terminal state container.setGrammarEndAllowed( false ); } } );
public void action( IAsn1Container container ) throws DecoderException { SyncRequestValueControlContainer SyncRequestValueContainer = ( SyncRequestValueControlContainer ) container; Value value = SyncRequestValueContainer.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = " + StringTools.dumpBytes( cookie ) ); } SyncRequestValueContainer.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition SyncRequestValueContainer.grammarEndAllowed( true ); } } );
public void action( SyncModifyDnContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); String newSuperirorDn = Strings.utf8ToString(value.getData()); if ( IS_DEBUG ) { LOG.debug( "newSuperirorDn = {}", newSuperirorDn ); } container.getSyncModifyDnControl().setNewSuperiorDn( newSuperirorDn ); // terminal state container.setGrammarEndAllowed( false ); } } );
public void action( SyncRequestValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = " + Strings.dumpBytes(cookie) ); } container.getSyncRequestValueControl().setCookie( cookie ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( IAsn1Container container ) throws DecoderException { SyncDoneValueControlContainer syncDoneValueContainer = ( SyncDoneValueControlContainer ) container; Value value = syncDoneValueContainer.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = {}", StringTools.dumpBytes( cookie ) ); } syncDoneValueContainer.getSyncDoneValueControl().setCookie( cookie ); syncDoneValueContainer.grammarEndAllowed( true ); } } );
public void action( SyncStateValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); byte[] entryUUID = value.getData(); if ( IS_DEBUG ) { LOG.debug( "entryUUID = {}", Strings.dumpBytes(entryUUID) ); } container.getSyncStateValueControl().setEntryUUID( entryUUID ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( IAsn1Container container ) throws DecoderException { SyncStateValueControlContainer syncStateValueContainer = ( SyncStateValueControlContainer ) container; Value value = syncStateValueContainer.getCurrentTLV().getValue(); byte[] entryUUID = value.getData(); if ( IS_DEBUG ) { LOG.debug( "entryUUID = {}", StringTools.dumpBytes( entryUUID ) ); } syncStateValueContainer.getSyncStateValueControl().setEntryUUID( entryUUID ); // We can have an END transition syncStateValueContainer.grammarEndAllowed( true ); } } );
public void action( SyncModifyDnContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); // Check that the value is into the allowed interval String entryDn = Strings.utf8ToString(value.getData()); if ( IS_DEBUG ) { LOG.debug( "ModDN entryDn = {}", entryDn ); } container.getSyncModifyDnControl().setEntryDn( entryDn ); // move on to the next transition container.setGrammarEndAllowed( false ); } } );
public void action( SyncInfoValueContainer container ) { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = " + Strings.dumpBytes(cookie) ); } container.getSyncInfoValueControl().setCookie( cookie ); container.setSyncInfoValueControl( control ); } } );
public void action( IAsn1Container container ) { SyncInfoValueControlContainer syncInfoValueContainer = ( SyncInfoValueControlContainer ) container; SyncInfoValueControl control = syncInfoValueContainer.getSyncInfoValueControl(); Value value = syncInfoValueContainer.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = " + StringTools.dumpBytes( cookie ) ); } syncInfoValueContainer.getSyncInfoValueControl().setCookie( cookie ); syncInfoValueContainer.setSyncInfoValueControl( control ); } } );
public void action( SyncInfoValueContainer container ) { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = " + Strings.dumpBytes(cookie) ); } container.getSyncInfoValueControl().setCookie( cookie ); container.setSyncInfoValueControl( control ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncInfoValueContainer container ) { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); byte[] cookie = value.getData(); if ( IS_DEBUG ) { LOG.debug( "cookie = " + Strings.dumpBytes(cookie) ); } container.getSyncInfoValueControl().setCookie( cookie ); container.setSyncInfoValueControl( control ); // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncModifyDnContainer container ) throws DecoderException { container.getSyncModifyDnControl().setModDnType( SyncModifyDnType.MOVE ); // We need to read the move operation's superiorDN Value value = container.getCurrentTLV().getValue(); // Check that the value is into the allowed interval String newSuperiorDn = Strings.utf8ToString(value.getData()); if ( IS_DEBUG ) { LOG.debug( "ModDN newSuperiorDn = {}", newSuperiorDn ); } container.getSyncModifyDnControl().setNewSuperiorDn( newSuperiorDn ); // move on to the next transition container.setGrammarEndAllowed( true ); } } );
public void action( IAsn1Container container ) throws DecoderException { PagedResultsControlContainer pagedSearchContainer = ( PagedResultsControlContainer ) container; Value value = pagedSearchContainer.getCurrentTLV().getValue(); if ( pagedSearchContainer.getCurrentTLV().getLength() == 0 ) { pagedSearchContainer.getPagedSearchControl().setCookie( StringTools.EMPTY_BYTES ); } else { pagedSearchContainer.getPagedSearchControl().setCookie( value.getData() ); } // We can have an END transition pagedSearchContainer.grammarEndAllowed( true ); } } );