Package org.apache.directory.kerberos.client

Examples of org.apache.directory.kerberos.client.Kinit


   
    @Test
    public void testKinit() throws Exception
    {
      File ccFile = File.createTempFile( "credCache-", ".cc" );
      Kinit kinit = new Kinit( conn );
      kinit.setCredCacheFile( ccFile );
     
      kinit.kinit(principalName, userPassword);
      System.out.println( "Kinit generated file " + ccFile.getAbsolutePath() );
     
      CredentialsCache credCache = CredentialsCache.load( ccFile );     
        assertNotNull( credCache );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.kerberos.client.Kinit

Copyright © 2018 www.massapicom. 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.