Package org.apache.directory.kerberos.client

Examples of org.apache.directory.kerberos.client.Kinit.kinit()


    {
      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
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.