Java 类org.apache.http.impl.auth.NTLMEngineException 实例源码

项目:Reer    文件:NTLMSchemeFactory.java   
private Type2Message decodeType2Message(String challenge) throws NTLMEngineException {
    try {
        return new Type2Message(Base64.decode(challenge));
    } catch (final IOException exception) {
        throw new NTLMEngineException("Invalid Type2 message", exception);
    }
}
项目:Pushjet-Android    文件:NTLMSchemeFactory.java   
private Type2Message decodeType2Message(String challenge) throws NTLMEngineException {
    try {
        return new Type2Message(Base64.decode(challenge));
    } catch (final IOException exception) {
        throw new NTLMEngineException("Invalid Type2 message", exception);
    }
}
项目:Pushjet-Android    文件:NTLMSchemeFactory.java   
private Type2Message decodeType2Message(String challenge) throws NTLMEngineException {
    try {
        return new Type2Message(Base64.decode(challenge));
    } catch (final IOException exception) {
        throw new NTLMEngineException("Invalid Type2 message", exception);
    }
}
项目:jntlm    文件:NTLMSchemeProvider.java   
@Override
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException {
    CredHandle credentials = acquireCredentialsHandle();
    try {
        byte[] token = nextToken(credentials, null);
        return Base64.encodeBase64String(token);
    } finally {
        dispose(credentials);
    }
}
项目:opensearchserver    文件:JCIFSEngine.java   
@Override
public String generateType1Msg(final String domain, final String workstation)
        throws NTLMEngineException {
    final Type1Message type1Message = new Type1Message(TYPE_1_FLAGS,
            domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:Reer    文件:NTLMSchemeFactory.java   
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException {
    Type1Message type1Message = new Type1Message(Type1Message.getDefaultFlags(), domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:Reer    文件:NTLMSchemeFactory.java   
public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException {
    Type2Message type2Message = decodeType2Message(challenge);
    Type3Message type3Message = new Type3Message(type2Message, password, domain, username, workstation, Type3Message.getDefaultFlags());
    return Base64.encode(type3Message.toByteArray());
}
项目:Pushjet-Android    文件:NTLMSchemeFactory.java   
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException {
    Type1Message type1Message = new Type1Message(Type1Message.getDefaultFlags(), domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:Pushjet-Android    文件:NTLMSchemeFactory.java   
public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException {
    Type2Message type2Message = decodeType2Message(challenge);
    Type3Message type3Message = new Type3Message(type2Message, password, domain, username, workstation, Type3Message.getDefaultFlags());
    return Base64.encode(type3Message.toByteArray());
}
项目:Pushjet-Android    文件:NTLMSchemeFactory.java   
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException {
    Type1Message type1Message = new Type1Message(Type1Message.getDefaultFlags(), domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:Pushjet-Android    文件:NTLMSchemeFactory.java   
public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException {
    Type2Message type2Message = decodeType2Message(challenge);
    Type3Message type3Message = new Type3Message(type2Message, password, domain, username, workstation, Type3Message.getDefaultFlags());
    return Base64.encode(type3Message.toByteArray());
}
项目:taskerbox    文件:JCIFSEngine.java   
@Override
public String generateType1Msg(final String domain, final String workstation)
      throws NTLMEngineException {
    final Type1Message type1Message = new Type1Message(TYPE_1_FLAGS, domain, workstation);
    return Base64.encode(type1Message.toByteArray());
  }
项目:cleverbus    文件:JCIFSEngine.java   
public String generateType1Msg(final String domain, final String workstation) throws NTLMEngineException {
    final Type1Message type1Message = new Type1Message(TYPE_1_FLAGS, domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:cs-actions    文件:JCIFSEngine.java   
public String generateType1Msg(final String domain, final String workstation)
        throws NTLMEngineException {
    final Type1Message type1Message = new Type1Message(TYPE_1_FLAGS, domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:cs-actions    文件:JCIFSEngineTest.java   
@Test
public void generateType1Msg() throws NTLMEngineException {
    JCIFSEngine engine = new JCIFSEngine();
    String type1Msg = engine.generateType1Msg("DOMAIN", "16.77.60");
    assertEquals("TlRMTVNTUAABAAAABbIIoAYABgAgAAAACAAIACYAAABET01BSU4xNi43Ny42MA==", type1Msg);
}
项目:jntlm    文件:NTLMSchemeProvider.java   
@Override
public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException {
    byte[] token = Base64.decodeBase64(challenge);
    token = nextToken(null, token);
    return Base64.encodeBase64String(token);
}
项目:iaf    文件:WebServiceNtlmSender.java   
public String generateType1Msg(final String domain,
        final String workstation) throws NTLMEngineException {
    final Type1Message type1Message = new Type1Message(TYPE_1_FLAGS,
            domain, workstation);
    return Base64.encode(type1Message.toByteArray());
}
项目:orbeon-forms    文件:JCIFSEngine.java   
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException {
    Type1Message t1m = new Type1Message(Type1Message.getDefaultFlags(), domain, workstation);
    return Base64.encode(t1m.toByteArray());
}