/** * {@inheritDoc} */ @Override public String getName() { return getDecorated().getName(); }
/** * {@inheritDoc} */ @Override public String getName() { return getDecorated().getName(); }
/** * {@inheritDoc} */ @Override public String getName() { return getDecorated().getName(); }
/** * {@inheritDoc} */ @Override public String getName() { return getDecorated().getName(); }
String bindName = request.getName(); if (bindName.length() > 0) { if (request instanceof GenericBindRequest) {
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<BindRequestDecorator> container ) { BindRequest bindRequestMessage = container.getMessage(); // Get the Value and store it in the BindRequest TLV tlv = container.getCurrentTLV(); // We have to handle the special case of a 0 length name if ( tlv.getLength() == 0 ) { bindRequestMessage.setName( "" ); } else { byte[] nameBytes = tlv.getValue().getData(); String nameStr = Strings.utf8ToString( nameBytes ); bindRequestMessage.setName( nameStr ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05116_BIND_NAME_IS, bindRequestMessage.getName() ) ); } } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<BindRequestDecorator> container ) { BindRequest bindRequestMessage = container.getMessage(); // Get the Value and store it in the BindRequest TLV tlv = container.getCurrentTLV(); // We have to handle the special case of a 0 length name if ( tlv.getLength() == 0 ) { bindRequestMessage.setName( "" ); } else { byte[] nameBytes = tlv.getValue().getData(); String nameStr = Strings.utf8ToString( nameBytes ); bindRequestMessage.setName( nameStr ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05116_BIND_NAME_IS, bindRequestMessage.getName() ) ); } } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<BindRequestDecorator> container ) { BindRequest bindRequestMessage = container.getMessage(); // Get the Value and store it in the BindRequest TLV tlv = container.getCurrentTLV(); // We have to handle the special case of a 0 length name if ( tlv.getLength() == 0 ) { bindRequestMessage.setName( "" ); } else { byte[] nameBytes = tlv.getValue().getData(); String nameStr = Strings.utf8ToString( nameBytes ); bindRequestMessage.setName( nameStr ); } if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05116_BIND_NAME_IS, bindRequestMessage.getName() ) ); } } }
/** * {@inheritDoc} */ @Override public Element toDsml( Element root ) { Element element = super.toDsml( root ); BindRequest request = getDecorated(); // Principal Dn dn = request.getDn(); if ( !Dn.isNullOrEmpty( dn ) ) { // A DN has been provided element.addAttribute( "principal", dn.getName() ); } else { // No DN has been provided, let's use the name as a string instead String name = request.getName(); element.addAttribute( "principal", name ); } return element; }
bindRequestCopy.setMessageId( newId ); bindRequestCopy.setName( bindRequest.getName() ); bindRequestCopy.setSaslMechanism( bindRequest.getSaslMechanism() ); bindRequestCopy.setSimple( bindRequest.isSimple() );
bindRequestCopy.setMessageId( newId ); bindRequestCopy.setName( bindRequest.getName() ); bindRequestCopy.setSaslMechanism( bindRequest.getSaslMechanism() ); bindRequestCopy.setSimple( bindRequest.isSimple() );
bindRequestCopy.setMessageId( newId ); bindRequestCopy.setName( bindRequest.getName() ); bindRequestCopy.setSaslMechanism( bindRequest.getSaslMechanism() ); bindRequestCopy.setSimple( bindRequest.isSimple() );
String name1 = req.getName(); String name2 = getName();
String name1 = req.getName(); String name2 = getName();
String name1 = req.getName(); String name2 = getName();
getLdapSession().putSaslProperty( SaslConstants.SASL_AUTHENT_USER, ldapPrincipal ); getLdapSession() .putSaslProperty( Context.SECURITY_PRINCIPAL, getBindRequest().getName().toString() );