Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for KERB5 (0.05 sec)

  1. src/main/java/jcifs/smb/Kerb5Context.java

        @Override
        public String toString() {
            if (this.gssContext == null || !this.gssContext.isEstablished()) {
                return String.format("KERB5[src=%s,targ=%s]", this.clientName, this.serviceName);
            }
            try {
                return String.format("KERB5[src=%s,targ=%s,mech=%s]", this.gssContext.getSrcName(), this.gssContext.getTargName(),
                        this.gssContext.getMech());
            } catch (GSSException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  2. src/test/java/jcifs/smb/Kerb5ContextTest.java

        void toString_notEstablished() throws Exception {
            when(gssContext.isEstablished()).thenReturn(false);
            String s = ctx.toString();
            assertTrue(s.startsWith("KERB5["));
            assertTrue(s.contains("src=null"));
        }
    
        @Test
        @DisplayName("toString shows names and mech when established")
        void toString_established_ok() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top