@@ 3460-3491 (lines=32) @@ | ||
3457 | __repr__ = __str__ |
|
3458 | ||
3459 | ||
3460 | class AnonymousIdentityToken(FrozenClass): |
|
3461 | ''' |
|
3462 | A token representing an anonymous user. |
|
3463 | ||
3464 | :ivar PolicyId: |
|
3465 | :vartype PolicyId: String |
|
3466 | ''' |
|
3467 | ||
3468 | ua_types = [ |
|
3469 | ||
3470 | ('PolicyId', 'String'), |
|
3471 | ] |
|
3472 | ||
3473 | def __init__(self): |
|
3474 | self.PolicyId = None |
|
3475 | self._freeze = True |
|
3476 | ||
3477 | def to_binary(self): |
|
3478 | packet = [] |
|
3479 | packet.append(uabin.Primitives.String.pack(self.PolicyId)) |
|
3480 | return b''.join(packet) |
|
3481 | ||
3482 | @staticmethod |
|
3483 | def from_binary(data): |
|
3484 | obj = AnonymousIdentityToken() |
|
3485 | self.PolicyId = uabin.Primitives.String.unpack(data) |
|
3486 | return obj |
|
3487 | ||
3488 | def __str__(self): |
|
3489 | return 'AnonymousIdentityToken(' + 'PolicyId:' + str(self.PolicyId) + ')' |
|
3490 | ||
3491 | __repr__ = __str__ |
|
3492 | ||
3493 | ||
3494 | class UserNameIdentityToken(FrozenClass): |
|
@@ 3426-3457 (lines=32) @@ | ||
3423 | __repr__ = __str__ |
|
3424 | ||
3425 | ||
3426 | class UserIdentityToken(FrozenClass): |
|
3427 | ''' |
|
3428 | A base type for a user identity token. |
|
3429 | ||
3430 | :ivar PolicyId: |
|
3431 | :vartype PolicyId: String |
|
3432 | ''' |
|
3433 | ||
3434 | ua_types = [ |
|
3435 | ||
3436 | ('PolicyId', 'String'), |
|
3437 | ] |
|
3438 | ||
3439 | def __init__(self): |
|
3440 | self.PolicyId = None |
|
3441 | self._freeze = True |
|
3442 | ||
3443 | def to_binary(self): |
|
3444 | packet = [] |
|
3445 | packet.append(uabin.Primitives.String.pack(self.PolicyId)) |
|
3446 | return b''.join(packet) |
|
3447 | ||
3448 | @staticmethod |
|
3449 | def from_binary(data): |
|
3450 | obj = UserIdentityToken() |
|
3451 | self.PolicyId = uabin.Primitives.String.unpack(data) |
|
3452 | return obj |
|
3453 | ||
3454 | def __str__(self): |
|
3455 | return 'UserIdentityToken(' + 'PolicyId:' + str(self.PolicyId) + ')' |
|
3456 | ||
3457 | __repr__ = __str__ |
|
3458 | ||
3459 | ||
3460 | class AnonymousIdentityToken(FrozenClass): |